From f9abf75724d33c8b7f793d0fb1646925ed7e80dc Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 8 Mar 2023 17:31:26 +0100 Subject: UI sheet header - add caret to show collapse --- ishtar_common/templates/ishtar/sheet.html | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/ishtar/sheet.html b/ishtar_common/templates/ishtar/sheet.html index 4596d8ec6..a4a3e2228 100644 --- a/ishtar_common/templates/ishtar/sheet.html +++ b/ishtar_common/templates/ishtar/sheet.html @@ -18,6 +18,7 @@ + {% else %} {% if item.qrcode.name %} @@ -114,6 +115,12 @@ $('#{{window_id}}-tabs a[href="#{{window_id}}-' + hash + '"]').tab('show'); } + $("#collapse-{{window_id}}").on("hidden.bs.collapse", function () { + $(".card-label .caret-{{window_id}}").html(''); + }); + $("#collapse-{{window_id}}").on("shown.bs.collapse", function () { + $(".card-label .caret-{{window_id}}").html(''); + }); $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { $(e.target).resize(); // fix table header refresh for datatable }) -- cgit v1.2.3