mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-22 23:05:18 -04:00
Refactor the gallery dialog into a jQuery widget
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
This commit is contained in:
committed by
Bharat Mediratta
parent
1591c3871a
commit
a302a9c3fa
@@ -16,7 +16,7 @@
|
||||
title="<?= t("Edit Your Profile") ?>"
|
||||
id="gAfterInstallChangePasswordLink" class="gButtonLink ui-state-default ui-corners-all"><?= t("Change Password Now") ?></a>
|
||||
<script>
|
||||
$("#gAfterInstallChangePasswordLink").bind("click", handleDialogEvent);
|
||||
$("#gAfterInstallChangePasswordLink").galleryDialog();
|
||||
</script>
|
||||
</p>
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<?= t("Add") ?>
|
||||
</button>
|
||||
|
||||
<button class="ui-state-default ui-corner-all" onclick="closeDialog(); window.location.reload();">
|
||||
<button id="gServerCloseButton" class="ui-state-default ui-corner-all">
|
||||
<?= t("Close") ?>
|
||||
</button>
|
||||
</span>
|
||||
@@ -48,6 +48,9 @@
|
||||
progressbar("value", 0);
|
||||
$("#gProgress").slideDown("fast", function() { start_add() });
|
||||
});
|
||||
$("#gServerCloseButton").click(function(event) {
|
||||
$("#gDialog").dialog("close");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ function closeEditInPlaceForms() {
|
||||
$("#gRenameTagForm").parent().html($("#gRenameTagForm").parent().data("revert"));
|
||||
li.height("");
|
||||
$(".gEditable", li).bind("click", editInPlace);
|
||||
$(".gDialogLink", li).bind("click", handleDialogEvent);
|
||||
$(".gDialogLink", li).galleryDialog();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
{},
|
||||
function(data) {
|
||||
$("#group-" + group_id).html(data);
|
||||
$("#group-" + group_id + " .gDialogLink").bind("click", handleDialogEvent);
|
||||
$("#group-" + group_id + " .gDialogLink").galleryDialog());
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user