[BUGFIX] Disable the "new shortcut" button 11/46511/2
authorMarco Huber <mail@marco-huber.de>
Fri, 29 Jan 2016 17:11:18 +0000 (18:11 +0100)
committerBenni Mack <benni@typo3.org>
Fri, 5 Feb 2016 21:16:57 +0000 (22:16 +0100)
Disable the "new shortcut" button only in the csh popup.

Relates: #73009,#73013
Fixes: #73014
Releases: master,7.6
Change-Id: I9d704ccdb039665a0277f4071301069da3ecc4e1
Reviewed-on: https://review.typo3.org/46511
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/backend/Resources/Public/JavaScript/ContextHelp.js

index 105dd43..b1af70c 100644 (file)
@@ -37,7 +37,7 @@ define(['jquery', 'TYPO3/CMS/Backend/Popover', 'bootstrap'], function($) {
         */
        ContextHelp.initialize = function() {
                ContextHelp.helpModuleUrl = (typeof top.TYPO3.settings.ContextHelp !== 'undefined') ? top.TYPO3.settings.ContextHelp.moduleUrl : null;
-               if (ContextHelp.helpModuleUrl === null) {
+               if (TYPO3.ShortcutMenu === undefined && top.TYPO3.ShortcutMenu === undefined) {
                        // @FIXME: if we are in the popup... remove the bookmark / shortcut button
                        // @TODO: make it possible to use the bookmark button also in popup mode
                        $('.icon-actions-system-shortcut-new').closest('.btn').hide();