summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Ritter2019-09-09 17:15:14 +0200
committerSteffen Ritter2019-09-09 17:15:14 +0200
commitdfed8bf96c28d31e9d1f4d91ce81663b03c90c47 (patch)
treec5743455b69d0e874510cf3cf8dad29d5871272e
parent[statistics] Make several filters by date actually work (diff)
downloadslx-admin-dfed8bf96c28d31e9d1f4d91ce81663b03c90c47.tar.gz
slx-admin-dfed8bf96c28d31e9d1f4d91ce81663b03c90c47.tar.xz
slx-admin-dfed8bf96c28d31e9d1f4d91ce81663b03c90c47.zip
[statistics] Fix for shitty firefox
Firefox caches elements which results in untranslated filters when you reload the page
-rw-r--r--modules-available/statistics/templates/filterbox.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules-available/statistics/templates/filterbox.html b/modules-available/statistics/templates/filterbox.html
index 07aa7320..f71c918d 100644
--- a/modules-available/statistics/templates/filterbox.html
+++ b/modules-available/statistics/templates/filterbox.html
@@ -214,6 +214,10 @@ document.addEventListener("DOMContentLoaded", function () {
}, false);
+window.addEventListener('unload', function() {
+ filterSelectize.clear();
+});
+
function popupFilter(field) {
if (field != null) {
$('#columnSelect').val(field);