From 0a60c471de886977f6e7a2cd36c17a69a90d8d57 Mon Sep 17 00:00:00 2001 From: Robert Goldmann <deadlocker@gmx.de> Date: Sun, 20 Feb 2022 11:44:50 +0100 Subject: [PATCH] fixed: templates in non first template group are not expandable --- src/main/resources/static/js/templates.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/resources/static/js/templates.js b/src/main/resources/static/js/templates.js index 5a6f7a6c9..e544d3352 100644 --- a/src/main/resources/static/js/templates.js +++ b/src/main/resources/static/js/templates.js @@ -1,6 +1,6 @@ $(document).ready(function() { - M.Collapsible.init(document.querySelector('.collapsible.expandable'), { + M.Collapsible.init(document.querySelectorAll('.collapsible.expandable'), { accordion: false }); @@ -112,7 +112,6 @@ function searchTemplates(searchText) searchText = searchText.toLowerCase() let templateItems = document.querySelectorAll('.template-item'); - let collapsible = document.getElementById('templateCollapsible'); if(!searchText) { -- GitLab