Even more Bugfixes

This commit is contained in:
2020-04-02 22:25:13 +02:00
parent 2f004dd4c8
commit 9de6b22a90
7 changed files with 17 additions and 6 deletions

View File

@@ -38,12 +38,16 @@ function setState(state) {
li.find("i").removeClass().addClass(icon);
}
function getCurrentStep() {
return $("#currentStep").index() + 1;
}
function sendRequest(params, done) {
setState(PENDING);
var success = false;
$("#status").hide();
$.post("/index.php", params, function(data) {
if(data.success) {
if(data.success || data.step != getCurrentStep()) {
success = true;
window.location.reload();
} else {