[BUGFIX] Main module ajax refresh 16/50216/3
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 13 Oct 2016 14:26:57 +0000 (16:26 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Thu, 13 Oct 2016 14:35:19 +0000 (16:35 +0200)
The main module id has been renamed from #typo3-menu to #menu.
Adapt that in JS to successfully reload the main module if
for instance an extension in loaded or unloaded in em.

Change-Id: Ie3c3600cc52ea4ca630b2642d84b045ef75f8528
Resolves: #78286
Related: #52877
Releases: master
Reviewed-on: https://review.typo3.org/50216
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/backend/Resources/Public/JavaScript/modulemenu.js

index 96e078d..f0fb429 100644 (file)
@@ -260,7 +260,7 @@ require(
                        // refresh the HTML by fetching the menu again
                        refreshMenu: function () {
                                $.ajax(TYPO3.settings.ajaxUrls['modulemenu']).done(function (result) {
-                                       $('#typo3-menu').replaceWith(result.menu);
+                                       $('#menu').replaceWith(result.menu);
                                        if (top.currentModuleLoaded) {
                                                TYPO3.ModuleMenu.App.highlightModuleMenuItem(top.currentModuleLoaded);
                                        }