Widget:TimerTest2: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
Line 27: | Line 27: | ||
this.Timer = $.timer(updateTimer, incrementTime, true); | this.Timer = $.timer(updateTimer, incrementTime, true); | ||
}; | }; | ||
this.play = function(){ | this.play = function(){ | ||
if(!this.Timer.isActive){ | if(!this.Timer.isActive){ | ||
Line 45: | Line 43: | ||
currentTime -=incrementTime; | currentTime -=incrementTime; | ||
if(currentTime === 100){ | if(currentTime === 100){ | ||
window.Obj1.pause(); | window.Obj1.Timer.pause(); | ||
alert("Click OK to continue accruing CME Time"); | alert("Click OK to continue accruing CME Time"); | ||
window.Obj2.Timer.pause().once(); | window.Obj2.Timer.pause().once(); |