Lines 830-836
function _dt_on_visibility(add_filters, table_node, table_dt){
Link Here
|
830 |
function _dt_add_filters(table_node, table_dt, filters_options = {}) { |
830 |
function _dt_add_filters(table_node, table_dt, filters_options = {}) { |
831 |
$(table_node).find('thead tr').clone().appendTo( $(table_node).find('thead') ); |
831 |
$(table_node).find('thead tr').clone().appendTo( $(table_node).find('thead') ); |
832 |
|
832 |
|
|
|
833 |
let j = -1; |
833 |
$(table_node).find('thead tr:eq(1) th').each( function (i) { |
834 |
$(table_node).find('thead tr:eq(1) th').each( function (i) { |
|
|
835 |
j++ |
836 |
var is_visible = table_dt.settings()[0].aoColumns[j].bVisible; |
837 |
if ( !is_visible ) { j++ } |
838 |
i = j; |
839 |
|
834 |
var is_searchable = table_dt.settings()[0].aoColumns[i].bSearchable; |
840 |
var is_searchable = table_dt.settings()[0].aoColumns[i].bSearchable; |
835 |
$(this).removeClass('sorting').removeClass("sorting_asc").removeClass("sorting_desc"); |
841 |
$(this).removeClass('sorting').removeClass("sorting_asc").removeClass("sorting_desc"); |
836 |
$(this).data('th-id', i); |
842 |
$(this).data('th-id', i); |
837 |
- |
|
|