From de1ea314092dca3cdcd8c59af43158ce2b806205 Mon Sep 17 00:00:00 2001
From: Julian Leucker <leuckerj@gmail.com>
Date: Sat, 15 May 2021 23:01:36 +0200
Subject: [PATCH] Clear the filter form correctly

---
 .../alsijil/templates/alsijil/class_register/person.html  | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/aleksis/apps/alsijil/templates/alsijil/class_register/person.html b/aleksis/apps/alsijil/templates/alsijil/class_register/person.html
index 1fc16f8e7..afa6801ca 100644
--- a/aleksis/apps/alsijil/templates/alsijil/class_register/person.html
+++ b/aleksis/apps/alsijil/templates/alsijil/class_register/person.html
@@ -153,4 +153,12 @@
       </ul>
     </div>
   {% endif %}
+<script type="text/javascript">
+    $("#remove-filters").click(function () {
+        $("#filter-modal").trigger("reset");
+        $("#filter-modal input, #filter-modal select").each(function () {
+            $(this).val("");
+        })
+    })
+</script>
 {% endblock %}
-- 
GitLab