diff options
| author | Teddy Wing | 2017-04-04 16:06:28 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-04-04 16:06:28 +0200 |
| commit | 1d756ba338443f319f156b388223339639f91faf (patch) | |
| tree | f7b2ee54b0ff5d196299bce496e037d57910a51c | |
| parent | 122eb638e982b93d77798bca4c44d4f67e51a0dc (diff) | |
| download | chrome-timetasker-1d756ba338443f319f156b388223339639f91faf.tar.bz2 | |
timetasker.js: Increase timeouts
The select boxes wouldn't always get populated asynchronously in time
for timetasker to make its selections. Increase the timeout to give it a
little more headroom.
| -rw-r--r-- | timetasker.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/timetasker.js b/timetasker.js index fb653f3..71267d9 100644 --- a/timetasker.js +++ b/timetasker.js @@ -28,21 +28,21 @@ function timetasker (fields) { window.setTimeout(function() { populate_select(module_0, fields.module); - }, 500); + }, 1000); window.setTimeout(function() { populate_select(task_0, fields.task); - }, 500); + }, 1000); window.setTimeout(function() { populate_select(work_type_0, fields.work_type); - }, 500); + }, 1000); time_0.value = fields.time; window.setTimeout(function() { billable_0.checked = fields.billable; - }, 500); + }, 800); window.setTimeout(function() { |
