summaryrefslogtreecommitdiff
path: root/chimere
diff options
context:
space:
mode:
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
commitd8f27299da6f081d0b659793855480f268afff14 (patch)
treecb8ae0b605df7f6a77b2e96fbda7976bfffa8821 /chimere
parent9e90b94b755d8d3fd19add3864a79ff8210be77e (diff)
downloadChimère-d8f27299da6f081d0b659793855480f268afff14.tar.bz2
Chimère-d8f27299da6f081d0b659793855480f268afff14.zip
JS: arbitrary delay to wait until the end of window opening
Diffstat (limited to 'chimere')
-rw-r--r--chimere/static/saclay/js/interface.js9
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);
}