View | Details | Raw Unified | Return to bug 33736
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/datatables.js (-1 / +6 lines)
Lines 822-828 function _dt_on_visibility(add_filters, table_node, table_dt){ Link Here
822
function _dt_add_filters(table_node, table_dt, filters_options = {}) {
822
function _dt_add_filters(table_node, table_dt, filters_options = {}) {
823
    $(table_node).find('thead tr').clone().appendTo( $(table_node).find('thead') );
823
    $(table_node).find('thead tr').clone().appendTo( $(table_node).find('thead') );
824
824
825
    let j = -1;
825
    $(table_node).find('thead tr:eq(1) th').each( function (i) {
826
    $(table_node).find('thead tr:eq(1) th').each( function (i) {
827
        j++
828
        var is_visible = table_dt.settings()[0].aoColumns[j].bVisible;
829
        if ( !is_visible ) { j++ }
830
        i = j;
831
826
        var is_searchable = table_dt.settings()[0].aoColumns[i].bSearchable;
832
        var is_searchable = table_dt.settings()[0].aoColumns[i].bSearchable;
827
        $(this).removeClass('sorting').removeClass("sorting_asc").removeClass("sorting_desc");
833
        $(this).removeClass('sorting').removeClass("sorting_asc").removeClass("sorting_desc");
828
        $(this).data('th-id', i);
834
        $(this).data('th-id', i);
829
- 

Return to bug 33736