Lines 906-913
function _dt_add_delay_filters(table_dt, table_node) {
Link Here
|
906 |
let col_input_search = DataTable.util.debounce(function (i, val) { |
906 |
let col_input_search = DataTable.util.debounce(function (i, val) { |
907 |
table_dt.column(i).search(val).draw(); |
907 |
table_dt.column(i).search(val).draw(); |
908 |
}, delay_ms); |
908 |
}, delay_ms); |
909 |
let col_select_search = DataTable.util.debounce(function (i, val) { |
909 |
let col_select_search = DataTable.util.debounce(function (i, val, regex_search = true) { |
910 |
table_dt.column(i).search(val, true, false).draw(); |
910 |
table_dt.column(i).search(val, regex_search, false).draw(); |
911 |
}, delay_ms); |
911 |
}, delay_ms); |
912 |
|
912 |
|
913 |
$(table_node).find('thead tr:eq(1) th').each( function (visible_i) { |
913 |
$(table_node).find('thead tr:eq(1) th').each( function (visible_i) { |
Lines 922-928
function _dt_add_delay_filters(table_dt, table_node) {
Link Here
|
922 |
$(this).find("select") |
922 |
$(this).find("select") |
923 |
.unbind() |
923 |
.unbind() |
924 |
.bind("keyup change", function(){ |
924 |
.bind("keyup change", function(){ |
925 |
col_select_search(i, this.value) |
925 |
col_select_search(i, this.value, false) |
926 |
}); |
926 |
}); |
927 |
}); |
927 |
}); |
928 |
} |
928 |
} |
929 |
- |
|
|