aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2017-03-20 00:41:52 +0100
committerTeddy Wing2017-03-20 00:41:52 +0100
commit9a489a61c48c0a932f3b6a7273800428e2dde92d (patch)
tree2e5e831af7e6bca032a23811bdb9ca69454bba30
parented5ee8ce54bc16e56619dab15b99ab21fa9b42e0 (diff)
downloadchrome-timetasker-9a489a61c48c0a932f3b6a7273800428e2dde92d.tar.bz2
timetasker.js: Add a comment around the date auto-filler
Make it a little clearer what's going on in the date picker event handler.
-rw-r--r--timetasker.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/timetasker.js b/timetasker.js
index 4be2c63..31fe526 100644
--- a/timetasker.js
+++ b/timetasker.js
@@ -47,6 +47,8 @@ function timetasker (fields) {
duplicate_0.click();
}
+ // Auto-fill the four duplicated time entries with dates following
+ // the one picked in the first time entry
date_0.addEventListener('change', function() {
var date_group = this.value.split('/')
var date = new Date(