From 36bd71573754711a45f4ddcc03cc88dad9b8e8a1 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 19 Apr 2018 14:27:14 +0200 Subject: [statistics] Fix select items in filterbox, tweak ID44 size grouping --- modules-available/statistics/templates/filterbox.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules-available/statistics/templates/filterbox.html') diff --git a/modules-available/statistics/templates/filterbox.html b/modules-available/statistics/templates/filterbox.html index 0178d7ea..cd8ec24d 100644 --- a/modules-available/statistics/templates/filterbox.html +++ b/modules-available/statistics/templates/filterbox.html @@ -169,16 +169,16 @@ document.addEventListener("DOMContentLoaded", function () { })); }); /* also set the type of the input */ - if (columns[col]['type'] == 'date') { + if (columns[col]['type'] === 'date') { $('#argumentInput').datepicker({format : 'yyyy-mm-dd'}); $('#argumentSelect').hide(); - } else if(columns[col]['type'] == 'enum') { + } else if(columns[col]['type'] === 'enum') { $('#argumentSelect').empty(); $('#argumentInput').hide(); $('#argumentSelect').show(); columns[col]['values'].forEach(function (v) { var t = v; - var disabled = true; + var disabled = (col === 'location'); if (col === 'location' && slxLocations['L' + v]) { t = slxLocations['L' + v].pad + ' ' + slxLocations['L' + v].name; disabled = slxLocations['L' + v].disabled; -- cgit v1.2.3-55-g7522