Lines 136-142
Link Here
|
136 |
tab.find(".show_filters").hide(); |
136 |
tab.find(".show_filters").hide(); |
137 |
tab.find(".hide_filters").show(); |
137 |
tab.find(".hide_filters").show(); |
138 |
$("#"+tab_id+"_table thead tr:eq(1)").remove(); |
138 |
$("#"+tab_id+"_table thead tr:eq(1)").remove(); |
139 |
build_items_table(tab_id, true, { dom: dataTablesDefaults.dom, destroy: true } ); |
139 |
build_items_table(tab_id, true, { destroy: true } ); |
140 |
}); |
140 |
}); |
141 |
|
141 |
|
142 |
$(".hide_filters").on("click",function(e){ |
142 |
$(".hide_filters").on("click",function(e){ |
Lines 146-152
Link Here
|
146 |
tab.find(".hide_filters").hide(); |
146 |
tab.find(".hide_filters").hide(); |
147 |
tab.find(".show_filters").show(); |
147 |
tab.find(".show_filters").show(); |
148 |
$("#"+tab_id+"_table thead tr:eq(1)").remove(); |
148 |
$("#"+tab_id+"_table thead tr:eq(1)").remove(); |
149 |
build_items_table(tab_id, false, { dom: '<"dt-info"i><"top pager"lpfB><"#filter_c">tr<"bottom pager"ip>', destroy: true } ); |
149 |
build_items_table(tab_id, false, { destroy: true } ); |
150 |
}); |
150 |
}); |
151 |
}); |
151 |
}); |
152 |
[% END %] |
152 |
[% END %] |
Lines 723-728
Link Here
|
723 |
}); |
723 |
}); |
724 |
} |
724 |
} |
725 |
); |
725 |
); |
|
|
726 |
|
727 |
if (!add_filters && settings._iRecordsDisplay == settings._iRecordsTotal && settings._iDisplayLength >= settings._iRecordsDisplay){ |
728 |
let container = $(this).parent(); |
729 |
container.find(".dt-info").remove(); |
730 |
container.find(".top.pager").remove(); |
731 |
container.find(".bottom.pager").remove(); |
732 |
} |
726 |
}, |
733 |
}, |
727 |
[% END %] |
734 |
[% END %] |
728 |
...dt_options, |
735 |
...dt_options, |