[BUGFIX] EM: un/install visual feedback 91/17091/2
authorFelix Kopp <felix-source@phorax.com>
Tue, 11 Dec 2012 06:27:07 +0000 (07:27 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Fri, 25 Jan 2013 14:20:57 +0000 (15:20 +0100)
Adds a visual feedback to the un/install button action in EM:
Masks the extension manager during un/install operations
are in progress - after success a page redirect is fired.

Introduces a CSS class that class can be added to any link in EM:
.onClickMaskExtensionManager

Change-Id: If7aa0b15eeab1afb162b103662a10920f4da149f
Fixes: #43856
Releases: 6.0, 6.1
Reviewed-on: https://review.typo3.org/17091
Reviewed-by: Sebastian Michaelsen
Tested-by: Sebastian Michaelsen
Reviewed-by: Tobias Liebig
Reviewed-by: Mattias Nilsson
Tested-by: Mattias Nilsson
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/extensionmanager/Classes/ViewHelpers/ToggleExtensionInstallationStateViewHelper.php
typo3/sysext/extensionmanager/Resources/Public/JavaScript/main.js

index ff7127a..7ed2805 100644 (file)
@@ -61,6 +61,7 @@ class ToggleExtensionInstallationStateViewHelper extends \TYPO3\CMS\Fluid\ViewHe
                $label = $extension['installed'] ? 'deactivate' : 'activate';
                $this->tag->addAttribute('title', \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('extensionList.' . $label, 'extensionmanager'));
                $icon = $extension['installed'] ? 'uninstall' : 'install';
+               $this->tag->addAttribute('class', 'onClickMaskExtensionManager');
                $this->tag->setContent(\TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-system-extension-' . $icon));
                return $this->tag->render();
        }
index 7b285bd..c3622aa 100644 (file)
@@ -9,6 +9,10 @@
                        datatable.fnFilter('');
                });
 
+               $('.onClickMaskExtensionManager').click(function() {
+                       $('.typo3-extension-manager').mask();
+               });
+
                resetSearchField();
        });
 
                });
        }
 
-
        function confirmDeletionAndDelete(url) {
                TYPO3.Dialog.QuestionDialog({
                        title: TYPO3.l10n.localize('extensionList.removalConfirmation.title'),