summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Ritter2019-09-09 17:15:14 +0200
committerSteffen Ritter2019-12-17 13:55:02 +0100
commit30120adb9893ab4971efb5e37bfe4452b2d7a0ce (patch)
tree082ce8e843cd645545c0ec949e34dfd6061f678b
parent[roomplanner] Make client tooltip more readable (diff)
downloadslx-admin-30120adb9893ab4971efb5e37bfe4452b2d7a0ce.tar.gz
slx-admin-30120adb9893ab4971efb5e37bfe4452b2d7a0ce.tar.xz
slx-admin-30120adb9893ab4971efb5e37bfe4452b2d7a0ce.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);