diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-09-07 18:53:17 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-09-07 18:53:17 -0700 |
commit | b6fa33faf789749f4de3f4eadf8832748372c980 (patch) | |
tree | 834e268dbd3585fdcc59f93072f3e3d77158954e /modules/organize/views | |
parent | 511826a33cbbf03bf1e3cb151f1a181b8e6723e8 (diff) |
Create a setLocation javascript callback which is called everytime with the full url of the current album(non-REST). When the dialog is closed the window location is set to this value and the page gets loaded appropriately.
Diffstat (limited to 'modules/organize/views')
-rw-r--r-- | modules/organize/views/organize_dialog.html.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/organize/views/organize_dialog.html.php b/modules/organize/views/organize_dialog.html.php index b76813ad..769d6e9a 100644 --- a/modules/organize/views/organize_dialog.html.php +++ b/modules/organize/views/organize_dialog.html.php @@ -19,13 +19,17 @@ <script type="text/javascript"> $("#g-dialog").bind("dialogclose", function(event, ui) { // @todo do a call to organize/closing to end the batch - window.location.reload(); + window.location = $(this).data("reload.location"); }); function closeOrganizeDialog() { $("#g-dialog").dialog("close"); } + function setLocation(url) { + $("#g-dialog").data("reload.location", url); + } + function setTitle(title) { $("#ui-dialog-title-g-dialog").text(<?= t("Organize :: ")->for_js() ?> + title); } |