From 596414d4c90355de00a2f45293c12653e40b7718 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 30 Sep 2020 11:17:15 +0200 Subject: JS: fix table header refresh for datatable behind tab or modal --- ishtar_common/templates/ishtar/sheet.html | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ishtar_common/templates/ishtar/sheet.html') diff --git a/ishtar_common/templates/ishtar/sheet.html b/ishtar_common/templates/ishtar/sheet.html index 1c3ae37a0..b0f82941f 100644 --- a/ishtar_common/templates/ishtar/sheet.html +++ b/ishtar_common/templates/ishtar/sheet.html @@ -114,6 +114,9 @@ $('#{{window_id}}-tabs a[href="#{{window_id}}-' + hash + '"]').tab('show'); } + $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { + $(e.target).resize(); // fix table header refresh for datatable + }) }); {% endblock %} -- cgit v1.2.3