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

(-)a/koha-tmpl/intranet-tmpl/prog/js/datatables.js (-5 / +8 lines)
Lines 911-923 function _dt_add_filters(table_node, table_dt, filters_options = {}) { Link Here
911
                }
911
                }
912
            }
912
            }
913
913
914
            var search = $.fn.dataTable.util.throttle( function ( i, val ) {
915
                table_dt
916
                    .column( i )
917
                    .search( val )
918
                    .draw();
919
            }, 1000 );
920
914
            $( input_type, this ).on( 'keyup change', function () {
921
            $( input_type, this ).on( 'keyup change', function () {
915
                if ( table_dt.column(i).search() !== this.value ) {
922
                if ( table_dt.column(i).search() !== this.value ) {
916
                    if ( input_type == "input" ) {
923
                    if ( input_type == "input" ) {
917
                        table_dt
924
                        search(i, this.value)
918
                            .column(i)
919
                            .search( this.value )
920
                            .draw();
921
                    } else {
925
                    } else {
922
                        table_dt
926
                        table_dt
923
                            .column(i)
927
                            .column(i)
924
- 

Return to bug 35284