From 01f6c67eb5403c10c6d42ced6ee7310cf515e7d9 Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Wed, 17 Dec 2008 06:22:08 +0000 Subject: Added .gLoadingLarge and .gLoadingSmall to show ajax loading indicator. Applied to modal dialogs. --- themes/default/js/ui.init.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'themes/default/js/ui.init.js') diff --git a/themes/default/js/ui.init.js b/themes/default/js/ui.init.js index a7eb7931..3f917ff0 100644 --- a/themes/default/js/ui.init.js +++ b/themes/default/js/ui.init.js @@ -138,9 +138,12 @@ function openDialog(element) { $("#gDialog").dialog('destroy').remove(); } }); + $("#gDialog").addClass("gLoadingLarge"); + $(".ui-dialog-content").height(400); $("#gDialog").html(sHref); $.get(sHref, function(data) { - $("#gDialog").html(data); + $("#gDialog").removeClass("gLoadingLarge"); + $("#gDialog").html(data).hide().fadeIn(); }); return false; } -- cgit v1.2.3