From: Mathieu Lu Date: Wed, 20 Dec 2023 20:04:08 +0000 (-0500) Subject: menubar spin: stop after 10 seconds X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2cf631dc17e1f004fbb69c49f1c5f77a2866c288;p=civicrm-core.git menubar spin: stop after 10 seconds --- diff --git a/js/crm.menubar.js b/js/crm.menubar.js index 3ec193832f..357331f382 100644 --- a/js/crm.menubar.js +++ b/js/crm.menubar.js @@ -145,6 +145,12 @@ }, spin: function(spin) { $('.crm-logo-sm', '#civicrm-menu').toggleClass('fa-spin', spin); + // Sometimes the logo does not stop spinning (ex: file downloads) + if (spin) { + window.setTimeout(function() { + CRM.menubar.spin(false); + }, 10000); + } }, getItem: function(itemName) { return traverse(CRM.menubar.data.menu, itemName, 'get');