Lines 993-1004
function _dt_add_filters(table_node, table_dt, filters_options = {}) {
Link Here
|
993 |
let th = $(table_node).find( |
993 |
let th = $(table_node).find( |
994 |
"thead tr:eq(1) th:eq(%s)".format(visible_i) |
994 |
"thead tr:eq(1) th:eq(%s)".format(visible_i) |
995 |
); |
995 |
); |
996 |
var is_searchable = columns[i].bSearchable; |
996 |
var is_searchable = table_dt.settings()[0].aoColumns[i].bSearchable; |
997 |
$(th) |
997 |
$(this) |
998 |
.removeClass("sorting") |
998 |
.removeClass("sorting") |
999 |
.removeClass("sorting_asc") |
999 |
.removeClass("sorting_asc") |
1000 |
.removeClass("sorting_desc"); |
1000 |
.removeClass("sorting_desc"); |
1001 |
if (is_searchable) { |
1001 |
$(this).data("th-id", i); |
|
|
1002 |
if (is_searchable || $(this).data("filter") || filters_options[i]) { |
1002 |
let input_type = "input"; |
1003 |
let input_type = "input"; |
1003 |
let existing_search = column.search(); |
1004 |
let existing_search = column.search(); |
1004 |
if ($(th).data("filter") || filters_options.hasOwnProperty(i)) { |
1005 |
if ($(th).data("filter") || filters_options.hasOwnProperty(i)) { |
1005 |
- |
|
|