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 <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2021-10-13 10:16:00 +02:00
parent de6a373126
commit deea41e9ef
3 changed files with 5 additions and 10 deletions

View File

@ -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;

View File

@ -278,13 +278,13 @@
[% IF (usecache) %]
<th>Cache expiry (seconds)</th>
[% ELSE %]
<th class="hidden">&nbsp;</th>
<th class="NoVisible">Cache expiry (seconds)</th>
[% END %]
<th>Saved results</th>
[% IF has_obsolete_reports %]
<th>Update</th>
[% ELSE %]
<th class="hidden">&nbsp;</th>
<th class="NoVisible">Update</th>
[% END %]
<th class="NoSort noExport">Actions</th>
</tr>
@ -1755,9 +1755,6 @@
'bAutoWidth': false,
'sPaginationType': 'full',
'aaSorting': [[ 1, "asc" ]],
'aoColumnDefs': [
{ "visible": false, "aTargets" : [ "hidden" ] }
],
'oLanguage': {
'sZeroRecords': _("No matching reports found")
},

View File

@ -202,7 +202,7 @@
[% IF ( op == 'show' ) %]
<th class="NoSort">&nbsp;</th>
[% ELSE %]
<th class="hidden">&nbsp;</th>
<th class="NoVisible">&nbsp;</th>
[% END %]
<th>Card number</th>
<th>Surname</th>
@ -236,7 +236,7 @@
[% IF ( op == 'show' ) %]
<td>
[% ELSE %]
<td class="hidden">
<td class="NoVisible">
[% END %]
<input type="checkbox" name="borrowernumber" value="[% borrower.borrowernumber | html %]" checked="checked" />
</td>
@ -427,9 +427,6 @@
KohaTable("borrowerst", {
"order": [[ 1, "asc" ]],
"autoWidth": false,
"columnDefs": [
{ "visible": false, "targets" : [ "hidden" ] }
]
}, table_settings);
$("#selectallbutton").click(function() {