Skip to content
Snippets Groups Projects
Commit 0c16f811 authored by Wouter Wolters's avatar Wouter Wolters
Browse files

[TASK] Load modulemenu as RequireJs module

Rename the modulemenu JavaScript file to ModuleMenu.js
Load the module with RequireJS in the BackendController.

Resolves: #78538
Releases: master
Change-Id: I2da6a6fd2c3ecdb8cb0fa7267a079c8f6eba1a3d
Reviewed-on: https://review.typo3.org/50482


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarMichael Oehlhof <typo3@oehlhof.de>
Tested-by: default avatarMichael Oehlhof <typo3@oehlhof.de>
Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
parent 3bce1c47
Branches
Tags
No related merge requests found
......@@ -117,7 +117,6 @@ class BackendController
$this->jsFiles = [
'locallang' => $this->getLocalLangFileName(),
'md5' => 'EXT:backend/Resources/Public/JavaScript/md5.js',
'modulemenu' => 'EXT:backend/Resources/Public/JavaScript/modulemenu.js',
'evalfield' => 'EXT:backend/Resources/Public/JavaScript/jsfunc.evalfield.js',
'backend' => 'EXT:backend/Resources/Public/JavaScript/backend.js',
'iframepanel' => 'EXT:backend/Resources/Public/JavaScript/iframepanel.js',
......@@ -129,6 +128,9 @@ class BackendController
LoginRefresh.initialize();
}');
// load module menu
$this->pageRenderer->loadRequireJsModule('TYPO3/CMS/Backend/ModuleMenu');
// load Toolbar class
$this->pageRenderer->loadRequireJsModule('TYPO3/CMS/Backend/Toolbar');
......
......@@ -20,7 +20,7 @@ require(
[
'jquery',
'TYPO3/CMS/Backend/Icons',
'TYPO3/CMS/Backend/modulemenu'
'TYPO3/CMS/Backend/ModuleMenu'
],
function ($) {
......
......@@ -420,7 +420,7 @@ TYPO3.Components.PageTree.App = Ext.extend(Ext.Panel, {
*/
require(
[
'TYPO3/CMS/Backend/modulemenu'
'TYPO3/CMS/Backend/ModuleMenu'
],
function () {
// extjs loading bugfix
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment