thrimbletrimmer: Instead of redirecting on submit, alert but stay

pull/211/head
Mike Lang 4 years ago committed by Mike Lang
parent 337111a9ab
commit 74a38bfaeb

@ -299,9 +299,7 @@ thrimbletrimmerSubmit = function(state, override_changes=false) {
alert(error); alert(error);
} }
} else if (state == 'EDITED') { } else if (state == 'EDITED') {
// Only return to dashboard if submitted, not for save draft alert(`Video submitted for edit from ${start} to ${end}`)
setTimeout(() => { window.location.href = '/thrimbletrimmer/dashboard.html'; }, 500);
return
} else { } else {
alert("Draft saved"); alert("Draft saved");
} }

Loading…
Cancel
Save