Fixed #36654 Add some feedback on success. Thx Stefan Galinski
authorxonx <xonx@735d13b6-9817-0410-8766-e36946ffe9aa>
Fri, 27 Apr 2012 10:56:21 +0000 (10:56 +0000)
committerxonx <xonx@735d13b6-9817-0410-8766-e36946ffe9aa>
Fri, 27 Apr 2012 10:56:21 +0000 (10:56 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/sm_clearcachecm/trunk@61166 735d13b6-9817-0410-8766-e36946ffe9aa

Ressources/Private/Language/locallang_cm.xml
Ressources/Private/Php/RegisterJavaScriptForPagetreeAction.php
Ressources/Public/JavaScript/ClearCacheClickmenuActions.js

index fcd0ba7..47811c7 100644 (file)
@@ -9,8 +9,10 @@
                <languageKey index="default" type="array">
                        <label index="clearBranchCache">Clear branch cache</label>
                        <label index="clearBranchCacheError">Clearing the page cache of the branch failed.</label>
+                       <label index="clearBranchCacheSuccess">Clearing the page cache of the branch succeeded!</label>
                        <label index="clearPageCache">Clear page cache</label>
                        <label index="clearPageCacheError">Clearing the page cache failed.</label>
+                       <label index="clearPageCacheSuccess">Clearing the page cache succeeded.</label>
                </languageKey>
                <languageKey index="ar"></languageKey>
                <languageKey index="bs"></languageKey>
                <languageKey index="de" type="array">
                        <label index="clearBranchCache">Cache des Teilbereichs leeren</label>
                        <label index="clearBranchCacheError">Das Leeren des Caches für den Teilbereich ist fehlgeschlagen.</label>
+                       <label index="clearBranchCacheSuccess">Das Leeren des Caches für den Teilbereich war erfolgreich.</label>
                        <label index="clearPageCache">Cache der Seite leeren</label>
                        <label index="clearPageCacheError">Das Leeren des Caches für die Seite ist fehlgeschlagen.</label>
+                       <label index="clearPageCacheSuccess">Das Leeren des Caches für die Seite war erfolgreich.</label>
                </languageKey>
                <languageKey index="el"></languageKey>
                <languageKey index="eo"></languageKey>
index a338f46..b77e634 100644 (file)
@@ -12,12 +12,12 @@ if (is_object($TYPO3backend)) {
 
        $langPath = 'LLL:EXT:sm_clearcachecm/Ressources/Private/Language/locallang_cm.xml:';
        $pageRenderer->addInlineLanguageLabel(
-               'sm_clearcachecm_clearPageCache',
-               $GLOBALS['LANG']->sL($langPath . 'clearPageCache', TRUE)
+               'sm_clearcachecm_clearPageCacheSuccess',
+               $GLOBALS['LANG']->sL($langPath . 'clearPageCacheSuccess', TRUE)
        );
        $pageRenderer->addInlineLanguageLabel(
-               'sm_clearcachecm_clearBranchCache',
-               $GLOBALS['LANG']->sL($langPath . 'clearBranchCache', TRUE)
+               'sm_clearcachecm_clearBranchCacheSuccess',
+               $GLOBALS['LANG']->sL($langPath . 'clearBranchCacheSuccess', TRUE)
        );
 }
 
index 5928f9d..fb77a2c 100644 (file)
@@ -5,7 +5,9 @@ Ext.onReady(function() {
                                node.attributes.nodeData,
                                function(response) {
                                        if (response) {
-                                               TYPO3.Flashmessage.display(TYPO3.Severity.information, TYPO3.lang.sm_clearcachecm_clearPageCache, response, 5);
+                                               TYPO3.Flashmessage.display(TYPO3.Severity.error, '', response);
+                                       } else {
+                                               TYPO3.Flashmessage.display(TYPO3.Severity.ok, '', TYPO3.lang.sm_clearcachecm_clearPageCacheSuccess);
                                        }
                                },
                                this
@@ -18,7 +20,9 @@ Ext.onReady(function() {
                                node.attributes.nodeData,
                                function(response) {
                                        if (response) {
-                                               TYPO3.Flashmessage.display(TYPO3.Severity.information, TYPO3.lang.sm_clearcachecm_clearBranchCache, response, 5);
+                                               TYPO3.Flashmessage.display(TYPO3.Severity.error, '', response);
+                                       } else {
+                                               TYPO3.Flashmessage.display(TYPO3.Severity.ok, '', TYPO3.lang.sm_clearcachecm_clearBranchCacheSuccess);
                                        }
                                },
                                this