diff options
author | Bharat Mediratta <bharat@menalto.com> | 2011-04-21 13:59:03 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2011-04-21 13:59:03 -0700 |
commit | 9fe20561068fec04c57f7769aaf9ca5025bdc6ac (patch) | |
tree | a48c6d607a751351efd81375d9bcedf2cf74205e /modules/gallery | |
parent | 14eadea2c26e2f284b43bfe73e920dcd07837c1b (diff) |
Use window.location = "url" instead of window.location.reload() so
that we pop back up to the top of the page so that you see the status
message. Fixes #1676.
Diffstat (limited to 'modules/gallery')
-rw-r--r-- | modules/gallery/views/admin_modules.html.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/views/admin_modules.html.php b/modules/gallery/views/admin_modules.html.php index f4ae965c..2cc81b0d 100644 --- a/modules/gallery/views/admin_modules.html.php +++ b/modules/gallery/views/admin_modules.html.php @@ -6,7 +6,7 @@ dataType: "json", success: function(data) { if (data.reload) { - window.location.reload(); + window.location = "<? url::site("/admin/modules") ?>"; } else { $("body").append('<div id="g-dialog">' + data.dialog + '</div>'); $("#g-dialog").dialog({ |