added a spinner when adding a shortcut
authorIngo Renner <ingo.renner@typo3.org>
Sun, 20 Jan 2008 16:07:09 +0000 (16:07 +0000)
committerIngo Renner <ingo.renner@typo3.org>
Sun, 20 Jan 2008 16:07:09 +0000 (16:07 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2935 709f56b5-9817-0410-a4d7-c38de5d9e867

typo3/js/shortcutmenu.js

index 21c67f0..37bccfc 100644 (file)
@@ -246,6 +246,7 @@ var ShortcutMenu = Class.create({
         * when finished it reloads the menu
         */
        createShortcut: function(backPath, moduleName, url) {
+               $$('#shortcut-menu .toolbar-item img')[0].src = 'gfx/spinner.gif';
 
                        // synchrous call to wait for it to complete and call the render
                        // method with backpath _afterwards_
@@ -255,6 +256,7 @@ var ShortcutMenu = Class.create({
                });
 
                this.reRenderMenu(null, null, backPath);
+               $$('#shortcut-menu .toolbar-item img')[0].src = this.toolbarItemIcon;
        }
 
 });