From 00b1bcd9ce0985487deef9860498ff938cd7be9e Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 15 Feb 2024 18:48:00 +0100 Subject: 🐛 force refresh of map behind tabs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/templates/ishtar/sheet.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/ishtar/sheet.html b/ishtar_common/templates/ishtar/sheet.html index 49c06b0a6..a32ee2862 100644 --- a/ishtar_common/templates/ishtar/sheet.html +++ b/ishtar_common/templates/ishtar/sheet.html @@ -123,6 +123,10 @@ }); $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { $(e.target).resize(); // fix table header refresh for datatable + let target = $(e.target).attr("aria-controls"); + if ($("#" + target + " .ol-viewport").length){ + update_all_map_display(); + } }) }); {% endlocalize %} -- cgit v1.2.3