Fixed bug #15252: Bug: Backend shortcut cannot be set in IE8
authorSteffen Kamper <info@sk-typo3.de>
Tue, 27 Jul 2010 22:21:19 +0000 (22:21 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Tue, 27 Jul 2010 22:21:19 +0000 (22:21 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@8302 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/js/shortcutmenu.js

index f510723..ada3fd7 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2010-07-27  Steffen Kamper  <steffen@typo3.org>
 
+       * Fixed bug #15252: Bug: Backend shortcut cannot be set in IE8
        * Fixed bug #15218: [Feature] Possible Replace of Contrib Libraries
        * Fixed bug #15228: Links in TS object browser tree forget the breakkpoint
        * Fixed bug #14946: Switching workplaces causes nesting of BE (Thanks to Stefan Galinski)
index 2326aeb..374f639 100644 (file)
@@ -254,9 +254,8 @@ var ShortcutMenu = Class.create({
                var toolbarItemIcon = $$('#shortcut-menu .toolbar-item span.t3-icon')[0];
 
                var parent = Element.up(toolbarItemIcon);
-               var oldIcon = toolbarItemIcon.remove();
-               var spinner = Element('span', { 'class': 'spinner'});
-               parent.insert(spinner, {position: content});
+               var spinner = new Element('span').addClassName('spinner');
+               var oldIcon = toolbarItemIcon.replace(spinner);
 
                        // synchrous call to wait for it to complete and call the render
                        // method with backpath _afterwards_
@@ -266,8 +265,7 @@ var ShortcutMenu = Class.create({
                });
 
                this.reRenderMenu(null, null, backPath);
-               spinner.remove();
-               parent.insert(oldIcon, {position: content});
+               spinner.replace(oldIcon);
        }
 
 });