Lines 890-895
function _dt_add_filters(table_node, table_dt, filters_options = {}) {
Link Here
|
890 |
o.appendTo(select); |
890 |
o.appendTo(select); |
891 |
}); |
891 |
}); |
892 |
$(this).html( select ); |
892 |
$(this).html( select ); |
|
|
893 |
} else if (table_dt.settings()[0].aoColumns[i].sType == 'date' ) { |
894 |
let existing_search = table_dt.column(i).search(); |
895 |
let input = $('<input type="text" class="flatpickr" style="width: 100%" />'); |
896 |
if (existing_search) { |
897 |
input.prop("value", existing_search); |
898 |
} |
899 |
|
900 |
$(this).html( input ); |
893 |
} else { |
901 |
} else { |
894 |
var title = $(this).text(); |
902 |
var title = $(this).text(); |
895 |
var existing_search = table_dt.column(i).search(); |
903 |
var existing_search = table_dt.column(i).search(); |
Lines 920-925
function _dt_add_filters(table_node, table_dt, filters_options = {}) {
Link Here
|
920 |
$(this).html(''); |
928 |
$(this).html(''); |
921 |
} |
929 |
} |
922 |
} ); |
930 |
} ); |
|
|
931 |
|
932 |
$(".flatpickr").each(function(){ |
933 |
apply_flatpickr(this); |
934 |
}); |
923 |
} |
935 |
} |
924 |
|
936 |
|
925 |
|
937 |
|
926 |
- |
|
|