diff options
author | Simon Rettberg | 2017-02-08 15:18:06 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-02-08 15:18:06 +0100 |
commit | 24908c0871f8ea12b2f158a08499cf1e14dfa7de (patch) | |
tree | 224310ec7b22f0bffb63b98386ad24fda6485dfb /modules-available/statistics_reporting/templates | |
parent | [statistics_reporting] Fix my messed up tag order in days selection (diff) | |
download | slx-admin-24908c0871f8ea12b2f158a08499cf1e14dfa7de.tar.gz slx-admin-24908c0871f8ea12b2f158a08499cf1e14dfa7de.tar.xz slx-admin-24908c0871f8ea12b2f158a08499cf1e14dfa7de.zip |
[statistics_reporting] Implement column filtering for export
Diffstat (limited to 'modules-available/statistics_reporting/templates')
-rw-r--r-- | modules-available/statistics_reporting/templates/columnChooser.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules-available/statistics_reporting/templates/columnChooser.html b/modules-available/statistics_reporting/templates/columnChooser.html index 75dfb34f..f08daf1c 100644 --- a/modules-available/statistics_reporting/templates/columnChooser.html +++ b/modules-available/statistics_reporting/templates/columnChooser.html @@ -34,9 +34,8 @@ <div class="col-md-12 form-inline"> <div><strong class="text-capitalize">{{lang_displayColumns}}</strong></div> {{#columns}} - <input type="hidden" name="{{id}}" value="off"> <div class="checkbox"> - <input id="id_{{id}}" name="{{id}}" type="checkbox" class="column-toggle form-control" {{checked}}> + <input id="id_{{id}}" name="{{id}}" value="on" type="checkbox" class="column-toggle form-control" {{checked}}> <label for="id_{{id}}">{{name}}</label> </div> {{/columns}} @@ -142,6 +141,10 @@ $('.column-toggle').each(function () { var box = $(this); if ($('.' + box.attr('name')).length === 0) { + if (!box.is(':checked')) { + box.attr('value', 'off'); + box.prop('checked', true); + } box.parent().hide(); } else { updateColumn(box); |