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

(-)a/koha-tmpl/intranet-tmpl/prog/js/datatables.js (-2 / +5 lines)
Lines 721-726 function _dt_buttons(params){ Link Here
721
            enabled: false,
721
            enabled: false,
722
            text: '<i class="fa fa-lg fa-remove"></i> <span class="dt-button-text">' + __("Clear filter") + '</span>',
722
            text: '<i class="fa fa-lg fa-remove"></i> <span class="dt-button-text">' + __("Clear filter") + '</span>',
723
            action: function ( e, dt, node, config ) {
723
            action: function ( e, dt, node, config ) {
724
                $(".dt_filter_col input, .dt_filter_col select").val("");
725
                dt.columns().every( function () {
726
                    this.search( "" );
727
                } );
724
                dt.search( "" ).draw("page");
728
                dt.search( "" ).draw("page");
725
                node.addClass("disabled");
729
                node.addClass("disabled");
726
            }
730
            }
Lines 822-828 function _dt_add_filters(table_node, table_dt, filters_options = {}) { Link Here
822
826
823
    $(table_node).find('thead tr:eq(1) th').each( function (i) {
827
    $(table_node).find('thead tr:eq(1) th').each( function (i) {
824
        var is_searchable = table_dt.settings()[0].aoColumns[i].bSearchable;
828
        var is_searchable = table_dt.settings()[0].aoColumns[i].bSearchable;
825
        $(this).removeClass('sorting').removeClass("sorting_asc").removeClass("sorting_desc");
829
        $(this).removeClass('sorting').removeClass("sorting_asc").removeClass("sorting_desc").addClass("dt_filter_col");
826
        $(this).data('th-id', i);
830
        $(this).data('th-id', i);
827
        if ( is_searchable ) {
831
        if ( is_searchable ) {
828
            let input_type = 'input';
832
            let input_type = 'input';
829
- 

Return to bug 38071