summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-02-03 00:14:53 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-02-03 00:14:53 +0000
commitae254df7f793a903ff0d44b54a9454b94760aa78 (patch)
treed27e8bb6da6385a2f241535506428baad77bcf76
parent421129d7a8287e1666b41d35b811659cc3bbb4fe (diff)
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
-rw-r--r--themes/admin_default/js/ui.init.js4
1 files changed, 3 insertions, 1 deletions
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();
});