fix timer: chime resets with currentTime=0 instead of fastSeek(0) now
This commit is contained in:
parent
9f7e0efc61
commit
61e0bde688
1 changed files with 2 additions and 2 deletions
4
timer.js
4
timer.js
|
@ -122,7 +122,7 @@ timer.start = function()
|
||||||
$("#startStop").val("Reset");
|
$("#startStop").val("Reset");
|
||||||
$("#timerPause").attr("disabled", false);
|
$("#timerPause").attr("disabled", false);
|
||||||
$("#timerPause").val("Pause");
|
$("#timerPause").val("Pause");
|
||||||
document.getElementById("chime").fastSeek(0);
|
document.getElementById("chime").currentTime=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
timer.stop = function()
|
timer.stop = function()
|
||||||
|
@ -138,7 +138,7 @@ timer.stop = function()
|
||||||
$("#startStop").val("Start");
|
$("#startStop").val("Start");
|
||||||
$("#timerPause").attr("disabled", true);
|
$("#timerPause").attr("disabled", true);
|
||||||
document.getElementById("chime").pause();
|
document.getElementById("chime").pause();
|
||||||
document.getElementById("chime").fastSeek(0);
|
document.getElementById("chime").currentTime=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
timer.pause = function()
|
timer.pause = function()
|
||||||
|
|
Loading…
Reference in a new issue