Use location = location instead of location.reload
location.reload re-submits POST forms, while location = location does not
This commit is contained in:
parent
1beeb011a0
commit
ad2296e74e
|
@ -63,7 +63,7 @@ if(!empty($_POST["allow-metrics-checkbox"])) {
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<?php if(defined("CANNOT_INSTALL")) { ?>
|
<?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>
|
Re-check <i class="fas fa-sync"></i>
|
||||||
</a>
|
</a>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
|
|
|
@ -17,7 +17,7 @@ $(function () {
|
||||||
if (json.success) {
|
if (json.success) {
|
||||||
hideAll()
|
hideAll()
|
||||||
lm.find(".status-loader").show()
|
lm.find(".status-loader").show()
|
||||||
location.reload()
|
location = location
|
||||||
} else {
|
} else {
|
||||||
codeInput.addClass("is-invalid")
|
codeInput.addClass("is-invalid")
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ $(function () {
|
||||||
|
|
||||||
$(".logoutUser").click(function (e) {
|
$(".logoutUser").click(function (e) {
|
||||||
callLoginApi("logout", {}, function () {
|
callLoginApi("logout", {}, function () {
|
||||||
location.reload()
|
location = location
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -119,7 +119,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="actions-container">
|
<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>
|
<span class="horizontal-links-margin"></span>
|
||||||
<a href="#" onclick="history.back()">Go back</a>
|
<a href="#" onclick="history.back()">Go back</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue