Lines 1029-1040
function _dt_add_filters(table_node, table_dt, filters_options = {}) {
Link Here
|
1029 |
let th = $(table_node).find( |
1029 |
let th = $(table_node).find( |
1030 |
"thead tr:eq(1) th:eq(%s)".format(visible_i) |
1030 |
"thead tr:eq(1) th:eq(%s)".format(visible_i) |
1031 |
); |
1031 |
); |
1032 |
var is_searchable = columns[i].bSearchable; |
1032 |
var is_searchable = table_dt.settings()[0].aoColumns[i].bSearchable; |
1033 |
$(th) |
1033 |
$(this) |
1034 |
.removeClass("sorting") |
1034 |
.removeClass("sorting") |
1035 |
.removeClass("sorting_asc") |
1035 |
.removeClass("sorting_asc") |
1036 |
.removeClass("sorting_desc"); |
1036 |
.removeClass("sorting_desc"); |
1037 |
if (is_searchable) { |
1037 |
$(this).data("th-id", i); |
|
|
1038 |
if (is_searchable || $(this).data("filter") || filters_options[i]) { |
1038 |
let input_type = "input"; |
1039 |
let input_type = "input"; |
1039 |
let existing_search = column.search(); |
1040 |
let existing_search = column.search(); |
1040 |
if ($(th).data("filter") || filters_options.hasOwnProperty(i)) { |
1041 |
if ($(th).data("filter") || filters_options.hasOwnProperty(i)) { |
1041 |
- |
|
|