Skip to content

Commit

Permalink
Fix bug introduced in b6fa33f. Don't
Browse files Browse the repository at this point in the history
try to use $(this).data("reload.location") if it hasn't been set,
which can happen if Flash isn't available.  Fixes #1362
  • Loading branch information
bharat committed Sep 12, 2010
1 parent b4fb11f commit cc4a54a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/organize/views/organize_dialog.html.php
Expand Up @@ -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() {
Expand Down

0 comments on commit cc4a54a

Please sign in to comment.