From 2cf631dc17e1f004fbb69c49f1c5f77a2866c288 Mon Sep 17 00:00:00 2001 From: Mathieu Lu Date: Wed, 20 Dec 2023 15:04:08 -0500 Subject: [PATCH] menubar spin: stop after 10 seconds --- js/crm.menubar.js | 6 ++++++ 1 file changed, 6 insertions(+) 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'); -- 2.25.1