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-v3.8.tar.gz
slx-admin-v3.8.tar.xz
slx-admin-v3.8.zip
[statistics] Fix for shitty firefoxv3.8
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);