Lines 173-178
Link Here
|
173 |
|
173 |
|
174 |
}); |
174 |
}); |
175 |
|
175 |
|
|
|
176 |
let filters_shown = false; |
176 |
$(document).ready(function() { |
177 |
$(document).ready(function() { |
177 |
$(".show_filters").on("click",function(e){ |
178 |
$(".show_filters").on("click",function(e){ |
178 |
e.preventDefault(); |
179 |
e.preventDefault(); |
Lines 180-185
Link Here
|
180 |
let tab = $("#" + tab_id + "_panel" ); |
181 |
let tab = $("#" + tab_id + "_panel" ); |
181 |
tab.find(".show_filters").hide(); |
182 |
tab.find(".show_filters").hide(); |
182 |
tab.find(".hide_filters").show(); |
183 |
tab.find(".hide_filters").show(); |
|
|
184 |
filters_show = true; |
183 |
$("#"+tab_id+"_table thead tr:eq(1)").remove(); |
185 |
$("#"+tab_id+"_table thead tr:eq(1)").remove(); |
184 |
build_items_table(tab_id, true, { destroy: true }, build_items_table_drawncallback ); |
186 |
build_items_table(tab_id, true, { destroy: true }, build_items_table_drawncallback ); |
185 |
itemSelectionBuildActionLinks(tab_id); |
187 |
itemSelectionBuildActionLinks(tab_id); |
Lines 191-196
Link Here
|
191 |
let tab = $("#" + tab_id + "_panel" ); |
193 |
let tab = $("#" + tab_id + "_panel" ); |
192 |
tab.find(".hide_filters").hide(); |
194 |
tab.find(".hide_filters").hide(); |
193 |
tab.find(".show_filters").show(); |
195 |
tab.find(".show_filters").show(); |
|
|
196 |
filters_show = false; |
194 |
$("#"+tab_id+"_table thead tr:eq(1)").remove(); |
197 |
$("#"+tab_id+"_table thead tr:eq(1)").remove(); |
195 |
build_items_table(tab_id, false, { destroy: true }, build_items_table_drawncallback ); |
198 |
build_items_table(tab_id, false, { destroy: true }, build_items_table_drawncallback ); |
196 |
itemSelectionBuildActionLinks(tab_id); |
199 |
itemSelectionBuildActionLinks(tab_id); |
Lines 868-874
Link Here
|
868 |
table_dt.on("column-visibility.dt", function(e, settings, column, state, recalc ){ |
871 |
table_dt.on("column-visibility.dt", function(e, settings, column, state, recalc ){ |
869 |
if (recalc === false) return; |
872 |
if (recalc === false) return; |
870 |
|
873 |
|
871 |
_dt_add_filters(this, table_dt, filters_options); |
874 |
if ( filters_shown ) { |
|
|
875 |
_dt_add_filters(this, table_dt, filters_options); |
876 |
} |
872 |
|
877 |
|
873 |
user_colvis[tab_id][column] = state; |
878 |
user_colvis[tab_id][column] = state; |
874 |
|
879 |
|
875 |
- |
|
|