diff options
author | Étienne Loks <etienne@peacefrogs.net> | 2019-08-04 20:06:11 +0200 |
---|---|---|
committer | Étienne Loks <etienne@peacefrogs.net> | 2019-08-04 20:06:11 +0200 |
commit | d8f27299da6f081d0b659793855480f268afff14 (patch) | |
tree | cb8ae0b605df7f6a77b2e96fbda7976bfffa8821 /chimere/static/saclay/js/interface.js | |
parent | 9e90b94b755d8d3fd19add3864a79ff8210be77e (diff) | |
download | Chimère-d8f27299da6f081d0b659793855480f268afff14.tar.bz2 Chimère-d8f27299da6f081d0b659793855480f268afff14.zip |
JS: arbitrary delay to wait until the end of window opening
Diffstat (limited to 'chimere/static/saclay/js/interface.js')
-rw-r--r-- | chimere/static/saclay/js/interface.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/chimere/static/saclay/js/interface.js b/chimere/static/saclay/js/interface.js index a86d29d..413a50b 100644 --- a/chimere/static/saclay/js/interface.js +++ b/chimere/static/saclay/js/interface.js @@ -304,9 +304,12 @@ var init_map_edit; var map_edit_init = function(){ // ol3 must be initialized after modal opening if (init_map_edit){ - init_map_edit(); - $('#map_edit').chimere('refresh'); - $("#modal-edit").modal('handleUpdate'); + setTimeout( + function(){ + init_map_edit(); + $('#map_edit').chimere('refresh'); + $("#modal-edit").modal('handleUpdate'); + }, 500); } else { setTimeout(map_edit_init, 500); } |