From ae1e2941449c49cf3878a286ef2a6ff5917c086d Mon Sep 17 00:00:00 2001 From: jordi fita mas Date: Fri, 14 Jul 2023 10:25:39 +0200 Subject: [PATCH] Fix body class to show the filters without JavaScript MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This class must match the one set by the “Filter” button so that when there is no JavaScript filters forms are always visible. --- web/static/numerus.js | 2 +- web/template/app.gohtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/static/numerus.js b/web/static/numerus.js index 7a5dbd6..13eadec 100644 --- a/web/static/numerus.js +++ b/web/static/numerus.js @@ -712,7 +712,7 @@ htmx.on('closeModal', () => { }); htmx.on(document, 'alpine:init', () => { - document.body.classList.remove('show-filters'); + document.body.classList.remove('filters-visible'); Alpine.data('snackbar', () => ({ show: false, toast: "", toasts: [], timeoutId: null, init() { diff --git a/web/template/app.gohtml b/web/template/app.gohtml index e0a5203..7b757ca 100644 --- a/web/template/app.gohtml +++ b/web/template/app.gohtml @@ -9,7 +9,7 @@ - +

Numerus