aboutsummaryrefslogtreecommitdiffstats
path: root/timetasker.js
diff options
context:
space:
mode:
authorTeddy Wing2017-03-18 16:13:00 +0100
committerTeddy Wing2017-03-18 16:13:00 +0100
commit3153bffa94cecebb7ae0cd06d3eff6b7091080d4 (patch)
treee3cad21aaef7685175105024a2b4abda3d4c6ebb /timetasker.js
parentd2fc72cd520a1a505ae710279603506b16fd9a09 (diff)
downloadchrome-timetasker-3153bffa94cecebb7ae0cd06d3eff6b7091080d4.tar.bz2
Re-add timeouts around the Task and Work Type select boxes
Doing so properly fills in these boxes, leaving them time to populate their options asynchronously.
Diffstat (limited to 'timetasker.js')
-rw-r--r--timetasker.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/timetasker.js b/timetasker.js
index fdb4346..51f0671 100644
--- a/timetasker.js
+++ b/timetasker.js
@@ -28,8 +28,14 @@
popupate_select(module_0, MODULE);
}, 500);
- popupate_select(task_0, TASK);
- popupate_select(work_type_0, WORK_TYPE);
+ window.setTimeout(function() {
+ popupate_select(task_0, TASK);
+ }, 500);
+
+ window.setTimeout(function() {
+ popupate_select(work_type_0, WORK_TYPE);
+ }, 500);
+
// popupate_select(date_0, '');
time_0.value = TIME;
popupate_select(billable_0, BILLABLE ? 't' : 'f');