summaryrefslogtreecommitdiff
path: root/modules/gallery/views
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-06-15 00:42:14 +0800
committer <unostar@danalan.info>2009-06-15 01:10:13 +0800
commitb86e657194c2abaf53eba3752d4c63af1e689f67 (patch)
treed1eaaf19efc2885fc53655e145d70d10c3a70067 /modules/gallery/views
parenta89c871861d002a5a3174c01533919f7d12ff772 (diff)
Switch quick delete from JS confirm to jQuery UI dialog, closes ticket #355.
Signed-off-by: <unostar@danalan.info>
Diffstat (limited to 'modules/gallery/views')
-rw-r--r--modules/gallery/views/quick_pane.html.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/gallery/views/quick_pane.html.php b/modules/gallery/views/quick_pane.html.php
index 95de972b..f50e1abe 100644
--- a/modules/gallery/views/quick_pane.html.php
+++ b/modules/gallery/views/quick_pane.html.php
@@ -67,15 +67,12 @@
<? if ($item->type == "photo"): ?>
<? $title = t("Delete this photo") ?>
-<? $message = t("Do you really want to delete this photo") ?>
<? elseif ($item->type == "movie"): ?>
<? $title = t("Delete this movie") ?>
-<? $message = t("Do you really want to delete this movie") ?>
<? elseif ($item->type == "album"): ?>
<? $title = t("Delete this album") ?>
-<? $message = t("Do you really want to delete this album") ?>
<? endif ?>
-<a class="gButtonLink ui-corner-all ui-state-default" href="<?= url::site("quick/delete/$item->id?csrf=$csrf&page_type=$page_type") ?>" ref="<?= $message ?>" id="gQuickDelete" title="<?= $title ?>">
+<a class="gDialogLink gButtonLink ui-corner-all ui-state-default" href="<?= url::site("quick/form_delete/$item->id?page_type=$page_type") ?>" id="gQuickDelete" title="<?= $title ?>">
<span class="ui-icon ui-icon-trash">
<?= $title ?>
</span>