mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-02 21:21:06 -04:00
Switch quick delete from JS confirm to jQuery UI dialog, closes ticket #355.
Signed-off-by: <unostar@danalan.info>
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user