Fixed bug #15014: Switching workspaces does not reload frames in IE6 (thanks to Andre...
authorSusanne Moog <typo3@susannemoog.de>
Sun, 8 Aug 2010 13:00:08 +0000 (13:00 +0000)
committerSusanne Moog <typo3@susannemoog.de>
Sun, 8 Aug 2010 13:00:08 +0000 (13:00 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@8528 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/js/workspacemenu.js

index 068c675..a3fdb2b 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@
 
        * Fixed bug #14952: Opendocs Module relies on taskcenter_recent causing fatal error with new taskcenter (thanks to Georg Ringer and Philipp Gampe)
        * Fixed bug #15131: Linebreaks do not work anymore using '--linebreak--' in palettes (thanks to Caspar Stuebs)
+       * Fixed bug #15014: Switching workspaces does not reload frames in IE6 (thanks to Andreas Kiessling)
 
 2010-08-07  Christian Kuhn  <lolli@schwarzbu.ch>
 
index b22fa05..a94299c 100644 (file)
@@ -110,6 +110,8 @@ var WorkspaceMenu = Class.create({
         * toggles the workspace frontend preview
         */
        toggleFrontendPreview: function(event) {
+               var clickedElement = Event.element(event);
+
                var toggle = new Ajax.Request('ajax.php', {
                        parameters: 'ajaxID=WorkspaceMenu::toggleWorkspacePreview',
                        onSuccess: function(transport, response) {
@@ -118,11 +120,11 @@ var WorkspaceMenu = Class.create({
 
                                if (response.newWorkspacePreviewState === '1') {
                                        TYPO3.configuration.workspaceFrontendPreviewEnabled = 1;
-                                       Event.element(event).previous().removeClassName(stateInactiveClass).addClassName(stateActiveClass);
+                                       clickedElement.previous().removeClassName(stateInactiveClass).addClassName(stateActiveClass);
                                        top.WorkspaceFrontendPreviewEnabled = true;
                                } else {
                                        TYPO3.configuration.workspaceFrontendPreviewEnabled = 0;
-                                       Event.element(event).previous().removeClassName(stateActiveClass).addClassName(stateInactiveClass);
+                                       clickedElement.previous().removeClassName(stateActiveClass).addClassName(stateInactiveClass);
                                        top.WorkspaceFrontendPreviewEnabled = false;
                                }
                        }
@@ -144,7 +146,8 @@ var WorkspaceMenu = Class.create({
         * switches the workspace, reloads the module menu, and the content frame
         */
        switchWorkspace: function(event) {
-               var workspaceId = Event.element(event).identify().substring(3);
+               var clickedElement = Event.element(event);
+               var workspaceId = clickedElement.identify().substring(3);
 
                var switchRequest = new Ajax.Request('ajax.php', {
                        parameters: 'ajaxID=WorkspaceMenu::setWorkspace&workspaceId=' + workspaceId,
@@ -160,8 +163,8 @@ var WorkspaceMenu = Class.create({
                                $$('#workspace-selector-menu li.selected')[0].removeClassName('selected');
 
                                        // add "selected" class and checkmark
-                               Event.element(event).previous().removeClassName(stateInactiveClass).addClassName(stateActiveClass);
-                               Event.element(event).up().addClassName('selected');
+                               clickedElement.previous().removeClassName(stateInactiveClass).addClassName(stateActiveClass);
+                               clickedElement.up().addClassName('selected');
 
                                        // when in web module reload, otherwise send the user to the web module
                                if (currentModuleLoaded.startsWith('web_')) {