Use location = location instead of location.reload

location.reload re-submits POST forms, while location = location does not
This commit is contained in:
Wruczek 2019-04-22 17:37:29 +02:00
parent 1beeb011a0
commit ad2296e74e
3 changed files with 4 additions and 4 deletions

View File

@ -63,7 +63,7 @@ if(!empty($_POST["allow-metrics-checkbox"])) {
</a>
<?php if(defined("CANNOT_INSTALL")) { ?>
<a href="#" onclick="location.reload(); this.className += ' disabled'; return false" class="btn btn-warning float-right">
<a href="#" onclick="location = location; this.className += ' disabled'; return false" class="btn btn-warning float-right">
Re-check <i class="fas fa-sync"></i>
</a>
<?php } else { ?>

View File

@ -17,7 +17,7 @@ $(function () {
if (json.success) {
hideAll()
lm.find(".status-loader").show()
location.reload()
location = location
} else {
codeInput.addClass("is-invalid")
}
@ -31,7 +31,7 @@ $(function () {
$(".logoutUser").click(function (e) {
callLoginApi("logout", {}, function () {
location.reload()
location = location
})
})

View File

@ -119,7 +119,7 @@
</div>
<div class="actions-container">
<a href="#" onclick="location.reload()">Try again</a>
<a href="#" onclick="location = location">Try again</a>
<span class="horizontal-links-margin"></span>
<a href="#" onclick="history.back()">Go back</a>
</div>