billing: Remove hash when reloading upgrade page.

This commit is contained in:
Vishnu Ks 2019-01-09 08:26:15 +00:00 committed by Tim Abbott
parent 1e811b42ec
commit 537b7612cb
1 changed files with 7 additions and 0 deletions

View File

@ -37,6 +37,13 @@ exports.create_ajax_request = function (url, form_name, stripe_token = null) {
$(form_loading).hide(); $(form_loading).hide();
$(form_error).hide(); $(form_error).hide();
$(form_success).show(); $(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(); location.reload();
}, },
error: function (xhr) { error: function (xhr) {