From 82ce3f8f1ae13097ae94401b184a4313a11d9ab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Valenta?= <tomas@imaniti.org> Date: Sun, 25 Feb 2024 14:19:40 +0100 Subject: [PATCH] allow 1+ hour timers --- static_src/timer.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/static_src/timer.js b/static_src/timer.js index 858faff..7f952ba 100644 --- a/static_src/timer.js +++ b/static_src/timer.js @@ -199,9 +199,7 @@ $(window).ready( $("#pause_play").on( "click", (event) => { - const timeValues = window.timer.getTimeValues() - - if (timeValues.minutes == 0 && timeValues.seconds == 0) { + if (window.timer.getTotalTimeValues().seconds === 0) { alertify.error("ProsĂm, nastav ÄŤas.") return -- GitLab