[BUGFIX] Replace star icon properly after saving shortcut 05/56005/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Sun, 4 Mar 2018 18:28:10 +0000 (19:28 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 5 Mar 2018 08:17:01 +0000 (09:17 +0100)
Resolves: #84130
Releases: 8.7
Change-Id: If501bcf839a66d5eebe5432a959d207a1fede7e6
Reviewed-on: https://review.typo3.org/56005
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Resources/Public/JavaScript/Toolbar/ShortcutMenu.js

index 3eca32d..14d1ae3 100644 (file)
@@ -151,8 +151,8 @@ define(['jquery',
             ShortcutMenu.refreshMenu();
             $(ShortcutMenu.options.toolbarIconSelector, ShortcutMenu.options.containerSelector).replaceWith($existingIcon);
             if (typeof shortcutButton === 'object') {
-              Icons.getIcon('actions-system-shortcut-active', Icons.sizes.small).done(function(icons) {
-                $(shortcutButton).html(icons['actions-system-shortcut-active']);
+              Icons.getIcon('actions-system-shortcut-active', Icons.sizes.small).done(function(icon) {
+                $(shortcutButton).html(icon);
               });
               $(shortcutButton).addClass('active');
               $(shortcutButton).attr('title', null);