Fixed Bug #8207: Creating shortcuts in backend.php does not work in modules other...
authorIngo Renner <ingo.renner@typo3.org>
Wed, 23 Apr 2008 06:58:38 +0000 (06:58 +0000)
committerIngo Renner <ingo.renner@typo3.org>
Wed, 23 Apr 2008 06:58:38 +0000 (06:58 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3622 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/js/backend.js

index b981bd1..0bd960f 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2008-04-23  Ingo Renner  <ingo@typo3.org>
 
        * Fixed a bug where Webkit Browsers would not correctly display the icons in the dropdown type selector of records like pages and content elements, credits Jeff Segars
+       * Fixed Bug #8207: Creating shortcuts in backend.php does not work in modules other than web->list or file->filelist
 
 2008-04-22  Benjamin Mack  <benni@typo3.org>
 
index d649a67..d195847 100644 (file)
@@ -55,10 +55,12 @@ var ShortcutManager = {
        createShortcut: function(confirmQuestion, backPath, moduleName, url) {
                if(confirm(confirmQuestion)) {
                        if(typeof TYPO3BackendShortcutMenu != 'undefined') {
-                               TYPO3BackendShortcutMenu.createShortcut(backPath, moduleName, url);
+                                       // backend.php
+                               TYPO3BackendShortcutMenu.createShortcut('', moduleName, url);
                        }
 
                        if(top.shortcutFrame) {
+                                       // alt_main.php
                                var location = backPath + 'alt_shortcut.php?modName=' + moduleName + '&URL=' + url;
                                shortcutFrame.location.href = location;
                        }