Bug 40122: [24.11] Dont attempt regex search for select dropdowns
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
22fbc90da1
commit
39aa9c13ce
|
|
@ -906,8 +906,8 @@ function _dt_add_delay_filters(table_dt, table_node) {
|
|||
let col_input_search = DataTable.util.debounce(function (i, val) {
|
||||
table_dt.column(i).search(val).draw();
|
||||
}, delay_ms);
|
||||
let col_select_search = DataTable.util.debounce(function (i, val) {
|
||||
table_dt.column(i).search(val, true, false).draw();
|
||||
let col_select_search = DataTable.util.debounce(function (i, val, regex_search = true) {
|
||||
table_dt.column(i).search(val, regex_search, false).draw();
|
||||
}, delay_ms);
|
||||
|
||||
$(table_node).find('thead tr:eq(1) th').each( function (visible_i) {
|
||||
|
|
@ -922,7 +922,7 @@ function _dt_add_delay_filters(table_dt, table_node) {
|
|||
$(this).find("select")
|
||||
.unbind()
|
||||
.bind("keyup change", function(){
|
||||
col_select_search(i, this.value)
|
||||
col_select_search(i, this.value, false)
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue