diff --git a/typo3/sysext/backend/Resources/Public/JavaScript/Toolbar/ClearCacheMenu.js b/typo3/sysext/backend/Resources/Public/JavaScript/Toolbar/ClearCacheMenu.js index e6dbc436637229cfd408483c1c2bcb341a8265c2..572754174bc97f35bcde222cde59886926db3af4 100644 --- a/typo3/sysext/backend/Resources/Public/JavaScript/Toolbar/ClearCacheMenu.js +++ b/typo3/sysext/backend/Resources/Public/JavaScript/Toolbar/ClearCacheMenu.js @@ -48,7 +48,7 @@ define(['jquery', 'TYPO3/CMS/Backend/Icons'], function($, Icons) { /** * calls TYPO3 to clear a cache, then changes the topbar icon - * to a spinner. Once done, restores the original topbar icon + * to a spinner. Restores the original topbar icon when the request completed. * * @param {String} ajaxUrl the URL to load */ @@ -67,7 +67,7 @@ define(['jquery', 'TYPO3/CMS/Backend/Icons'], function($, Icons) { url: ajaxUrl, type: 'post', cache: false, - success: function() { + complete: function() { $(ClearCacheMenu.options.toolbarIconSelector, ClearCacheMenu.options.containerSelector).replaceWith($existingIcon); } });