From 42434d10ca6e738013c3774e5911ac0f35e86d40 Mon Sep 17 00:00:00 2001 From: Sli Date: Sun, 15 Jun 2025 16:33:22 +0200 Subject: [PATCH] Remove jquery-ui tabs from counter --- .../bundled/counter/counter-click-index.ts | 5 -- counter/templates/counter/counter_click.jinja | 55 +++++++++---------- 2 files changed, 27 insertions(+), 33 deletions(-) diff --git a/counter/static/bundled/counter/counter-click-index.ts b/counter/static/bundled/counter/counter-click-index.ts index 296c6003..99f6bdb7 100644 --- a/counter/static/bundled/counter/counter-click-index.ts +++ b/counter/static/bundled/counter/counter-click-index.ts @@ -137,8 +137,3 @@ document.addEventListener("alpine:init", () => { }, })); }); - -$(() => { - // biome-ignore lint/suspicious/noExplicitAny: dealing with legacy jquery - ($("#products") as any).tabs(); -}); diff --git a/counter/templates/counter/counter_click.jinja b/counter/templates/counter/counter_click.jinja index 24e1c6ae..c1ecbe16 100644 --- a/counter/templates/counter/counter_click.jinja +++ b/counter/templates/counter/counter_click.jinja @@ -9,12 +9,14 @@ + {% endblock %} {% block additional_js %} + {% endblock %} {% block info_boxes %} @@ -205,35 +207,32 @@ {% trans %}No products available on this counter for this user{% endtrans %} {% else %} - - {% for category in categories.keys() -%} -
-
{{ category }}
-
- {% for product in categories[category] -%} - - {%- endfor %} -
-
- {%- endfor %} + +
{{ category }}
+
+ {% for product in categories[category] -%} + + {%- endfor %} +
+
+ {% endfor %} + {% endif %}