summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar/sheet.html
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2020-09-30 11:17:15 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-02-28 12:15:20 +0100
commitd53b1af88aac5cf86b8acaab5e096d370d7fd0a4 (patch)
tree9d1d955a873575bf5fc15bbc62a0ec96525f5783 /ishtar_common/templates/ishtar/sheet.html
parent143b337b67195504ebbbe54984ab2e4b42ff6f2d (diff)
downloadIshtar-d53b1af88aac5cf86b8acaab5e096d370d7fd0a4.tar.bz2
Ishtar-d53b1af88aac5cf86b8acaab5e096d370d7fd0a4.zip
JS: fix table header refresh for datatable behind tab or modal
Diffstat (limited to 'ishtar_common/templates/ishtar/sheet.html')
-rw-r--r--ishtar_common/templates/ishtar/sheet.html3
1 files changed, 3 insertions, 0 deletions
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
+ })
});
</script>
{% endblock %}