summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--themes/default/images/ico-close.gifbin117 -> 0 bytes
-rw-r--r--themes/default/js/ui.init.js32
2 files changed, 15 insertions, 17 deletions
diff --git a/themes/default/images/ico-close.gif b/themes/default/images/ico-close.gif
deleted file mode 100644
index 2b81a98d..00000000
--- a/themes/default/images/ico-close.gif
+++ /dev/null
Binary files differ
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);
}