From 6565e14d2459b81961e5a605b2691ea54cbe7256 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Wed, 18 Mar 2015 09:19:06 +0000 Subject: disable confirmation on time-wasting resetting clock because it gets called when we submit the end of class form --- assets/js/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/main.js b/assets/js/main.js index b3ad26e..b79de74 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -236,8 +236,8 @@ timeWastingClock.running = false; timeWastingClock.reset = $.proxy(function () { if (this.getTime() != 1) { - if (confirm('Are you sure?')) - { + // if (confirm('Are you sure?')) + // { if (this.running) { $('#timeWastingClockGo').html('Start timer'); @@ -246,7 +246,7 @@ timeWastingClock.reset = $.proxy(function () { } $.jStorage.set('time_wasted', 0); this.setTime(0); - } + // } } }, timeWastingClock); timeWastingClock.toggle = $.proxy(function () { -- cgit v1.2.3