From deea41e9efba4efd9a5030383124efd2afbded76 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 13 Oct 2021 10:16:00 +0200 Subject: [PATCH] Bug 29218: Rename .hidden class for DT visibility .hidden get the CSS that interferes with DT behaviour .hidden { display: none !important; } Test this patch with bug 28859. Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart --- .../intranet-tmpl/prog/en/includes/columns_settings.inc | 1 + .../prog/en/modules/reports/guided_reports_start.tt | 7 ++----- .../intranet-tmpl/prog/en/modules/tools/modborrowers.tt | 7 ++----- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc index a1d80ecbb6..0e21d84011 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc @@ -134,6 +134,7 @@ function KohaTable(id_selector, dt_parameters, columns_settings, add_filters) { { "targets": [ "string-sort" ], "type": "string" }, { "targets": [ "anti-the" ], "type": "anti-the" }, { "targets": [ "NoSort" ], "orderable": false, "searchable": false }, + { "targets": [ "NoVisible" ], "visible": false } ]; if ( new_parameters["aoColumnDefs"] === undefined ) { new_parameters["aoColumnDefs"] = default_column_defs; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt index 47ed17190c..e766923601 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -278,13 +278,13 @@ [% IF (usecache) %] Cache expiry (seconds) [% ELSE %] -   + Cache expiry (seconds) [% END %] Saved results [% IF has_obsolete_reports %] Update [% ELSE %] -   + Update [% END %] Actions @@ -1755,9 +1755,6 @@ 'bAutoWidth': false, 'sPaginationType': 'full', 'aaSorting': [[ 1, "asc" ]], - 'aoColumnDefs': [ - { "visible": false, "aTargets" : [ "hidden" ] } - ], 'oLanguage': { 'sZeroRecords': _("No matching reports found") }, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt index d067e39624..f60a917a9b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt @@ -202,7 +202,7 @@ [% IF ( op == 'show' ) %]   [% ELSE %] -   +   [% END %] Card number Surname @@ -236,7 +236,7 @@ [% IF ( op == 'show' ) %] [% ELSE %] - + [% END %] @@ -427,9 +427,6 @@ KohaTable("borrowerst", { "order": [[ 1, "asc" ]], "autoWidth": false, - "columnDefs": [ - { "visible": false, "targets" : [ "hidden" ] } - ] }, table_settings); $("#selectallbutton").click(function() { -- 2.39.5