From dfed8bf96c28d31e9d1f4d91ce81663b03c90c47 Mon Sep 17 00:00:00 2001 From: Steffen Ritter Date: Mon, 9 Sep 2019 17:15:14 +0200 Subject: [statistics] Fix for shitty firefox Firefox caches elements which results in untranslated filters when you reload the page --- modules-available/statistics/templates/filterbox.html | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3-55-g7522