diff options
author | Chad Kieffer <chad@2tbsp.com> | 2008-12-17 06:22:08 +0000 |
---|---|---|
committer | Chad Kieffer <chad@2tbsp.com> | 2008-12-17 06:22:08 +0000 |
commit | 01f6c67eb5403c10c6d42ced6ee7310cf515e7d9 (patch) | |
tree | 39c4c995548a37cd8c3d58a56a68863047392f43 /themes/default/js/ui.init.js | |
parent | 78cd00312e875a5f448b0c1e079644586da42f07 (diff) |
Added .gLoadingLarge and .gLoadingSmall to show ajax loading indicator. Applied to modal dialogs.
Diffstat (limited to 'themes/default/js/ui.init.js')
-rw-r--r-- | themes/default/js/ui.init.js | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |