Skip to content
Snippets Groups Projects
Commit 1e1841ac authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

fix window.timerIsRunning

parent 5e58abdb
No related branches found
No related tags found
1 merge request!9Release
Pipeline #15171 passed
......@@ -32,6 +32,7 @@ const assignEventListeners = () => {
window.timer.addEventListener(
'targetAchieved',
(event) => {
window.timerIsRunning = false
$("#is_counting").prop("checked", false)
$('#timer .timer-values').html("Konec")
}
......@@ -169,19 +170,19 @@ $(window).ready(
window.timerIsRunning = true
} else {
if (
!(
window.timerIsRunning
&& "sync_time" in data
&& data["sync_time"]["minutes"] === 0
&& data["sync_time"]["seconds"] === 0
)
) {
return
}
window.timer.pause()
window.timerIsRunning = false
}
$("#is_counting").prop("checked", false)
$("#pause_play > .btn__body").html("⏵︎")
window.timerIsRunning = false
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment