From d2f95bea20121b63f7cf92cbe43ff00453b0523c Mon Sep 17 00:00:00 2001 From: ElementalAlchemist Date: Fri, 18 Nov 2022 19:17:55 -0600 Subject: [PATCH] Fix jump to buttons not working on videos that were already submitted --- thrimbletrimmer/scripts/edit.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/thrimbletrimmer/scripts/edit.js b/thrimbletrimmer/scripts/edit.js index d4b1093..a479401 100644 --- a/thrimbletrimmer/scripts/edit.js +++ b/thrimbletrimmer/scripts/edit.js @@ -188,12 +188,12 @@ window.addEventListener("DOMContentLoaded", async (event) => { for (const rangeEndSet of document.getElementsByClassName("range-definition-set-end")) { rangeEndSet.addEventListener("click", getRangeSetClickHandler("end")); } - for (const rangeStartPlay of document.getElementsByClassName("range-definition-play-start")) { - rangeStartPlay.addEventListener("click", rangePlayFromStartHandler); - } - for (const rangeEndPlay of document.getElementsByClassName("range-definition-play-end")) { - rangeEndPlay.addEventListener("click", rangePlayFromEndHandler); - } + } + for (const rangeStartPlay of document.getElementsByClassName("range-definition-play-start")) { + rangeStartPlay.addEventListener("click", rangePlayFromStartHandler); + } + for (const rangeEndPlay of document.getElementsByClassName("range-definition-play-end")) { + rangeEndPlay.addEventListener("click", rangePlayFromEndHandler); } for (const rangeStart of document.getElementsByClassName("range-definition-start")) { rangeStart.addEventListener("change", (event) => {