diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2010-09-11 22:18:53 -0700 | 
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2010-09-11 22:18:53 -0700 | 
| commit | cc4a54a3d65d5a6772cbf2d9670a0af0d6d52542 (patch) | |
| tree | 5257351a4e73d40452d8a77e93c54ec9e77b7d67 /modules/organize/views | |
| parent | b4fb11f8d5f06aed612ea9d9c9699ce31e55b957 (diff) | |
Fix bug introduced in b6fa33faf789749f4de3f4eadf8832748372c980.  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
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 769d6e9a..3ea1143d 100644 --- a/modules/organize/views/organize_dialog.html.php +++ b/modules/organize/views/organize_dialog.html.php @@ -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() { | 
