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>
|
||||
|
||||
<?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 { ?>
|
||||
|
|
|
@ -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
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue