diff --git a/src/main/resources/static/js/filter.js b/src/main/resources/static/js/filter.js index 4a36656b4de3faa881c1809450cd91302d84e729..d4f10997d335be14e33c3ca2ee3cb7ee8749a7bc 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 2d7b08d25e2f2cc3d92d5f6ea0ad294d5c8454ee..09a7f08bb252a365e4ee6db8561702ff72af7f44 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>