From 50e45a1fdc711df6eeae27ff2a18ae42eb398130 Mon Sep 17 00:00:00 2001
From: Robert Goldmann <deadlocker@gmx.de>
Date: Mon, 2 Aug 2021 22:30:09 +0200
Subject: [PATCH] Fixed #639 - filter modal: confirm button not working

---
 src/main/resources/static/js/filter.js               | 4 ++++
 src/main/resources/templates/filter/filterMacros.ftl | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/main/resources/static/js/filter.js b/src/main/resources/static/js/filter.js
index 4a36656b4..d4f10997d 100644
--- a/src/main/resources/static/js/filter.js
+++ b/src/main/resources/static/js/filter.js
@@ -36,6 +36,10 @@ $(document).ready(function()
         updateStatus();
     });
 
+    $('#buttonApplyFilter').click(function(){
+       document.getElementsByName('NewFilterConfiguration')[0].submit();
+    });
+
     updateStatus();
 });
 
diff --git a/src/main/resources/templates/filter/filterMacros.ftl b/src/main/resources/templates/filter/filterMacros.ftl
index 2d7b08d25..09a7f08bb 100644
--- a/src/main/resources/templates/filter/filterMacros.ftl
+++ b/src/main/resources/templates/filter/filterMacros.ftl
@@ -33,7 +33,7 @@
 </#macro>
 
 <#macro buttonApply>
-    <button class="btn waves-effect waves-light background-green" type="submit" name="buttonSave">
+    <button class="btn waves-effect waves-light background-green" type="submit" id="buttonApplyFilter">
         <i class="fas fa-filter left"></i>${locale.getString("filter.apply")}
     </button>
 </#macro>
-- 
GitLab