diff options
author | Chad Kieffer <chad@2tbsp.com> | 2008-12-26 06:09:43 +0000 |
---|---|---|
committer | Chad Kieffer <chad@2tbsp.com> | 2008-12-26 06:09:43 +0000 |
commit | 4dda9c5a6e23157e79b73fbcd67a2104a474c45d (patch) | |
tree | bd97633133204ea3c6e12061dc9b52e20cd1069b | |
parent | 2917af5c0de13c113a077287794cfc23ffb1d04a (diff) |
Comment and indent cleanup. Forgot to delete an image in a previous commit.
-rw-r--r-- | themes/default/images/ico-close.gif | bin | 117 -> 0 bytes | |||
-rw-r--r-- | themes/default/js/ui.init.js | 32 |
2 files changed, 15 insertions, 17 deletions
diff --git a/themes/default/images/ico-close.gif b/themes/default/images/ico-close.gif Binary files differdeleted file mode 100644 index 2b81a98d..00000000 --- a/themes/default/images/ico-close.gif +++ /dev/null diff --git a/themes/default/js/ui.init.js b/themes/default/js/ui.init.js index 93815b35..fe650539 100644 --- a/themes/default/js/ui.init.js +++ b/themes/default/js/ui.init.js @@ -94,7 +94,6 @@ function handleDialogEvent(event) { * @requires ui.dialog * @see handleDialogEvent() * - * @todo Set dialog attributes dynamically (width, height, drag, resize) * @todo Set ui-dialog-buttonpane button values equal to the original form button value * @todo Display loading animation on form submit */ @@ -109,17 +108,17 @@ function openDialog(element) { $("#gDialog form").ajaxForm({ dataType: "json", success: function(data) { - if (data.form) { + if (data.form) { $("#gDialog form").replaceWith(data.form); - } - if (data.result == "success") { + } + if (data.result == "success") { $("#gDialog").dialog("close"); - if (data.location) { - window.location = data.location; - } else { - window.location.reload(); - } - } + if (data.location) { + window.location = data.location; + } else { + window.location.reload(); + } + } } }).submit(); }; @@ -167,17 +166,16 @@ function openDialog(element) { * Toggle the processing indicator, both large and small * * @param element ID to which to apply the loading class, including # - * @param size Either Large or Small */ function loading(element) { var size; switch (element) { - case "#gDialog": - size = "Large"; - break; - default: - size = "Small"; - break; + case "#gDialog": + size = "Large"; + break; + default: + size = "Small"; + break; } $(element).toggleClass("gLoading" + size); } |