Revert "[BUGFIX] Backend loops in Page module"
authorOliver Hader <oliver@typo3.org>
Fri, 13 Jan 2012 10:55:43 +0000 (11:55 +0100)
committerOliver Hader <oliver@typo3.org>
Fri, 13 Jan 2012 11:12:01 +0000 (12:12 +0100)
This reverts commit 103287a31f8ee1c5662711bc19e1189e79c50df2.

Change-Id: I389c7112d4f31c59edf26a04faaea047caf75418
Resolves: #33164
Releases: 4.7
Reviewed-on: http://review.typo3.org/7766
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/js/modulemenu.js

index 9a8bde3..37aa9f3 100644 (file)
@@ -41,7 +41,7 @@ Ext.define('TYPO3.model.ModuleMenu', {
        idProperty: 'index',
        fields: [{
                        name: 'index',
-                       type: 'int'
+                       type: 'int',
                },{
                        name: 'key',
                        type: 'string'
@@ -391,7 +391,7 @@ TYPO3.ModuleMenu.App = {
                        TYPO3.Backend.NavigationContainer.add(component);
                }
 
-               component.show();
+               component.show()
 
                        // backwards compatibility
                top.nav = component;
@@ -437,6 +437,7 @@ TYPO3.ModuleMenu.App = {
                TYPO3.ModuleMenu.Store.load({
                        scope: this,
                        callback: function(records, operation, success) {
+                               this.renderMenu(records);
                                if (this.loadedModule) {
                                        this.highlightModuleMenuItem(this.loadedModule);
                                }
@@ -473,7 +474,7 @@ Ext.onReady(function() {
 
 /*******************************************************************************
 *
-* Backwards compatibility handling down here
+* Backwards compatability handling down here
 *
 ******************************************************************************/
 
@@ -484,5 +485,5 @@ var currentlyHighLightedId = '';
 var currentlyHighLighted_restoreValue = '';
 var currentlyHighLightedMain = '';
 function highlightModuleMenuItem(trId, mainModule) {
-       TYPO3.ModuleMenu.App.highlightModuleMenuItem(trId, mainModule);
+       TYPO3.ModuleMenu.App.highlightModule(trId, mainModule);
 }