diff options
| author | Teddy Wing | 2017-03-18 16:13:00 +0100 |
|---|---|---|
| committer | Teddy Wing | 2017-03-18 16:13:00 +0100 |
| commit | 3153bffa94cecebb7ae0cd06d3eff6b7091080d4 (patch) | |
| tree | e3cad21aaef7685175105024a2b4abda3d4c6ebb | |
| parent | d2fc72cd520a1a505ae710279603506b16fd9a09 (diff) | |
| download | chrome-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.
| -rw-r--r-- | timetasker.js | 10 |
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'); |
