thrimbletrimmer: Fix bug where "Draft Saved" is shown after a failed submission

pull/151/head
Mike Lang 5 years ago
parent 2accfa9080
commit 3eb0ed2350

@ -256,8 +256,9 @@ thrimbletrimmerSubmit = function(state) {
// Only return to dashboard if submitted, not for save draft
setTimeout(() => { window.location.href = '/thrimbletrimmer/dashboard.html'; }, 500);
return
}
alert("Draft saved");
} else {
alert("Draft saved");
}
document.getElementById('SubmitButton').disabled = false;
}));
};

Loading…
Cancel
Save