[BUGFIX] Don't use modulemenu classes in topbar 61/39461/5
authorWouter Wolters <typo3@wouterwolters.nl>
Mon, 11 May 2015 19:30:04 +0000 (21:30 +0200)
committerBenjamin Mack <benni@typo3.org>
Tue, 12 May 2015 07:05:44 +0000 (09:05 +0200)
When the startModule setting is empty a strange behaviour
takes place. This happens because the module menu classes are
in use in the topbar too.

Fix this by adding a specific t3js-mainmodule class.

Resolves: #66893
Releases: master
Change-Id: I46768c1f81a2616bd279eacfa5b2e38c863b582e
Reviewed-on: http://review.typo3.org/39461
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Stephan GroƟberndt <stephan@grossberndt.de>
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
typo3/sysext/backend/Resources/Private/Templates/ModuleMenu/Main.html
typo3/sysext/backend/Resources/Public/JavaScript/modulemenu.js

index 3768003..0cad190 100644 (file)
@@ -22,7 +22,7 @@
                        </div>
                        <ul class="typo3-module-menu-group-container">
                                <f:for each="{mainModule.children}" as="subModule">
-                                       <li id="{subModule.name}" class="typo3-module-menu-item" data-modulename="{mainModule.name}" data-navigationcomponentid="{subModule.navigationComponentId}" data-navigationframescript="{subModule.navigationFrameScript}" data-navigationframescriptparameters="{subModule.navigationFrameScriptParameters}">
+                                       <li id="{subModule.name}" class="typo3-module-menu-item t3js-mainmodule" data-modulename="{mainModule.name}" data-navigationcomponentid="{subModule.navigationComponentId}" data-navigationframescript="{subModule.navigationFrameScript}" data-navigationframescriptparameters="{subModule.navigationFrameScriptParameters}">
                                                <a title="{subModule.description}" href="{subModule.link}" class="typo3-module-menu-item-link">
                                                        <span class="typo3-app-icon typo3-module-menu-item-icon">
                                                                <span>
index c382b3c..042f3bb 100644 (file)
@@ -36,7 +36,7 @@ TYPO3.ModuleMenu.App = {
                        me.showModule(top.startInModule[0], top.startInModule[1]);
                } else {
                        // fetch first module
-                       me.showModule(TYPO3.jQuery('.typo3-module-menu-item:first').attr('id'));
+                       me.showModule(TYPO3.jQuery('.t3js-mainmodule:first').attr('id'));
                }
 
                // check if there are collapsed items in the users' configuration