From e2155434c42adc316f4f2aaa131030d2d2f08e1f Mon Sep 17 00:00:00 2001
From: Susanne Moog <typo3@susannemoog.de>
Date: Sat, 22 Jan 2011 12:46:34 +0000
Subject: [PATCH] Fixed bug #17208: Backwards compatibility broken (top.nav)
 and JS errors when editing files in file list module

git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10247 709f56b5-9817-0410-a4d7-c38de5d9e867
---
 ChangeLog              | 1 +
 typo3/js/modulemenu.js | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 8ea024af14b8..3b028e887f3e 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
 	* Fixed bug #17091: Pagetree: undelete recursive deleted pages only undeletes the top node, not the other child nodes of the deleted page (Thanks to Stefan Galinski)
 	* Fixed bug #17204: Pagetree: Only call the singleClick method if the navigation component is visible (Thanks to Stefan Galinski)
 	* Fixed bug #17158: Pagetree: now uses [No title] from language file if no title is there (Thanks to Stefan Galinski)
+	* Fixed bug #17208: Backwards compatibility broken (top.nav) and JS errors when editing files in file list module
 
 2011-01-22  Steffen Gebert  <steffen@steffen-gebert.de>
 
diff --git a/typo3/js/modulemenu.js b/typo3/js/modulemenu.js
index 713a775ed223..89acbb51bb37 100644
--- a/typo3/js/modulemenu.js
+++ b/typo3/js/modulemenu.js
@@ -284,6 +284,10 @@ TYPO3.ModuleMenu.App = {
 		}
 
 		component.show()
+
+			// backwards compatibility
+		top.nav = component;
+		
 		TYPO3.Backend.NavigationContainer.show();
 		this.loadedNavigationComponentId = navigationComponentId;
 	},
@@ -343,7 +347,6 @@ Ext.onReady(function() {
 
 		// keep backward compatibility
 	top.list = TYPO3.Backend.ContentContainer;
-	top.nav = TYPO3.Backend.NavigationContainer.PageTree;
 	top.list_frame = top.list.getIframe();
 	top.nav_frame = TYPO3.Backend.NavigationContainer.PageTree;
 
-- 
GitLab