diff options
author | Steffen Ritter | 2019-09-09 17:15:14 +0200 |
---|---|---|
committer | Steffen Ritter | 2019-09-09 17:15:14 +0200 |
commit | dfed8bf96c28d31e9d1f4d91ce81663b03c90c47 (patch) | |
tree | c5743455b69d0e874510cf3cf8dad29d5871272e | |
parent | [statistics] Make several filters by date actually work (diff) | |
download | slx-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.html | 4 |
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); |