From ae254df7f793a903ff0d44b54a9454b94760aa78 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Tue, 3 Feb 2009 00:14:53 +0000 Subject: Only toggle the loading icon off, it is actually already in place. If the panel doesn't have the gLoadingLarge class then don't toggle it. This issue only arose if there was an error on the panel submission --- themes/admin_default/js/ui.init.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'themes/admin_default/js/ui.init.js') diff --git a/themes/admin_default/js/ui.init.js b/themes/admin_default/js/ui.init.js index 0b5feb7e..80ca2342 100644 --- a/themes/admin_default/js/ui.init.js +++ b/themes/admin_default/js/ui.init.js @@ -82,7 +82,9 @@ function togglePanel(element, on_success) { } } }); - showLoading("#gPanel"); + if ($("#gPanel").hasClass("gLoadingLarge")) { + showLoading("#gPanel"); + } }; ajaxify_panel(); }); -- cgit v1.2.3