summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/item.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-06-20 16:52:10 -0700
committerBharat Mediratta <bharat@menalto.com>2010-06-20 16:52:10 -0700
commit892727830d873a9f0a1a49f10ee14b0890088b23 (patch)
tree722c1abb31a00c2915e1886f45c7c671e9277255 /modules/gallery/helpers/item.php
parent9b4d9d1d4604c9d65b1629b0e95eaa0c75e0a257 (diff)
Add a loading indicator to the delete form by tagging some JS on at
the end which triggers .gallery_show_loading(). Not a complete fix for #817 but it's a start and it takes care of one place where we have a long running process.
Diffstat (limited to 'modules/gallery/helpers/item.php')
-rw-r--r--modules/gallery/helpers/item.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gallery/helpers/item.php b/modules/gallery/helpers/item.php
index 15bbe977..aef68c6e 100644
--- a/modules/gallery/helpers/item.php
+++ b/modules/gallery/helpers/item.php
@@ -162,6 +162,8 @@ class item_Core {
"quick/delete/$item->id?page_type=$page_type", "", "post", array("id" => "g-confirm-delete"));
$group = $form->group("confirm_delete")->label(t("Confirm Deletion"));
$group->submit("")->value(t("Delete"));
+ $form->script("")
+ ->url(url::abs_file("modules/gallery/js/item_form_delete.js"));
return $form;
}