mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-22 17:29:57 -04:00
Fix bug introduced in b6fa33faf7. Don't
try to use $(this).data("reload.location") if it hasn't been set,
which can happen if Flash isn't available. Fixes #1362
This commit is contained in:
@@ -19,7 +19,11 @@
|
||||
<script type="text/javascript">
|
||||
$("#g-dialog").bind("dialogclose", function(event, ui) {
|
||||
// @todo do a call to organize/closing to end the batch
|
||||
window.location = $(this).data("reload.location");
|
||||
if ($(this).data("reload.location")) {
|
||||
window.location = $(this).data("reload.location");
|
||||
} else {
|
||||
window.location.reload();
|
||||
}
|
||||
});
|
||||
|
||||
function closeOrganizeDialog() {
|
||||
|
||||
Reference in New Issue
Block a user