From d8f27299da6f081d0b659793855480f268afff14 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 4 Aug 2019 20:06:11 +0200 Subject: JS: arbitrary delay to wait until the end of window opening --- chimere/static/saclay/js/interface.js | 9 ++++++--- version.py | 2 +- 2 files changed, 7 insertions(+), 4 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); } diff --git a/version.py b/version.py index 1af5e81..c53795f 100644 --- a/version.py +++ b/version.py @@ -1,4 +1,4 @@ -VERSION = (3, 1, 22) +VERSION = (3, 1, 23) def get_version(): -- cgit v1.2.3