summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/templates/filterbox.html
diff options
context:
space:
mode:
authorSimon Rettberg2018-04-19 14:27:14 +0200
committerSimon Rettberg2018-04-19 14:27:14 +0200
commit36bd71573754711a45f4ddcc03cc88dad9b8e8a1 (patch)
tree547b2cad2d2fe2b620f597edb9891435b8c51f10 /modules-available/statistics/templates/filterbox.html
parent[locationinfo] davinchi: Reuse curl handle (diff)
downloadslx-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/filterbox.html')
-rw-r--r--modules-available/statistics/templates/filterbox.html6
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;