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.
This commit is contained in:
Bharat Mediratta
2011-04-21 13:59:03 -07:00
parent 14eadea2c2
commit 9fe2056106
+1 -1
View File
@@ -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({