diff options
author | Simon Rettberg | 2018-04-19 14:27:14 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-04-19 14:27:14 +0200 |
commit | 36bd71573754711a45f4ddcc03cc88dad9b8e8a1 (patch) | |
tree | 547b2cad2d2fe2b620f597edb9891435b8c51f10 /modules-available/statistics/templates | |
parent | [locationinfo] davinchi: Reuse curl handle (diff) | |
download | slx-admin-36bd71573754711a45f4ddcc03cc88dad9b8e8a1.tar.gz slx-admin-36bd71573754711a45f4ddcc03cc88dad9b8e8a1.tar.xz slx-admin-36bd71573754711a45f4ddcc03cc88dad9b8e8a1.zip |
[statistics] Fix select items in filterbox, tweak ID44 size grouping
Diffstat (limited to 'modules-available/statistics/templates')
-rw-r--r-- | modules-available/statistics/templates/filterbox.html | 6 |
1 files changed, 3 insertions, 3 deletions
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; |