mirror of https://github.com/zulip/zulip.git
billing: Remove hash when reloading upgrade page.
This commit is contained in:
parent
1e811b42ec
commit
537b7612cb
|
@ -37,6 +37,13 @@ exports.create_ajax_request = function (url, form_name, stripe_token = null) {
|
|||
$(form_loading).hide();
|
||||
$(form_error).hide();
|
||||
$(form_success).show();
|
||||
if (_.contains(["autopay", "invoice"], form_name)) {
|
||||
if ("pushState" in history) {
|
||||
history.pushState("", document.title, location.pathname + location.search);
|
||||
} else {
|
||||
location.hash = "";
|
||||
}
|
||||
}
|
||||
location.reload();
|
||||
},
|
||||
error: function (xhr) {
|
||||
|
|
Loading…
Reference in New Issue