aboutsummaryrefslogtreecommitdiffhomepage
path: root/assets/js/main.js
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2015-03-30 23:59:28 +0000
committerSean Whitton <spwhitton@spwhitton.name>2015-03-30 23:59:28 +0000
commit89ee56917dfc8ed45d5a9450b827bf4a5aa15dcf (patch)
treedb211b72a8beaca627e841348a266a50a145e247 /assets/js/main.js
parentd8f3dfdeadf78a3731ea1067e7a55378da29f13b (diff)
downloadsariulclocks-89ee56917dfc8ed45d5a9450b827bf4a5aa15dcf.tar.gz
fix bug where time wasting clock not fully reset
Time wasting clock reset method doesn't change value of time wasted in end of lesson form. If the time wasting clock is reset and then no time is wasted before the end of the class, the time before the clock is reset is recorded.
Diffstat (limited to 'assets/js/main.js')
-rw-r--r--assets/js/main.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/assets/js/main.js b/assets/js/main.js
index ab260cd..f0c1941 100644
--- a/assets/js/main.js
+++ b/assets/js/main.js
@@ -304,8 +304,9 @@ timeWastingClock.reset = $.proxy(function () {
this.stop();
this.running = false;
}
- $.jStorage.set('time_wasted', 0);
- this.setTime(0);
+ $.jStorage.set('time_wasted', 0);
+ $("#class_time_wasted").val(0);
+ this.setTime(0);
// }
}
}, timeWastingClock);