From 74a38bfaeb349cde7d4b79cf9ee7c68871256ada Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Wed, 18 Nov 2020 17:22:28 +1100 Subject: [PATCH] thrimbletrimmer: Instead of redirecting on submit, alert but stay --- thrimbletrimmer/scripts/IO.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/thrimbletrimmer/scripts/IO.js b/thrimbletrimmer/scripts/IO.js index 70273e6..612f99c 100644 --- a/thrimbletrimmer/scripts/IO.js +++ b/thrimbletrimmer/scripts/IO.js @@ -299,9 +299,7 @@ thrimbletrimmerSubmit = function(state, override_changes=false) { alert(error); } } else if (state == 'EDITED') { - // Only return to dashboard if submitted, not for save draft - setTimeout(() => { window.location.href = '/thrimbletrimmer/dashboard.html'; }, 500); - return + alert(`Video submitted for edit from ${start} to ${end}`) } else { alert("Draft saved"); }