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 871-877
Link Here
|
871 |
table_dt.on("column-visibility.dt", function(e, settings, column, state, recalc ){ |
874 |
table_dt.on("column-visibility.dt", function(e, settings, column, state, recalc ){ |
872 |
if (recalc === false) return; |
875 |
if (recalc === false) return; |
873 |
|
876 |
|
874 |
_dt_add_filters(this, table_dt, filters_options); |
877 |
if ( filters_shown ) { |
|
|
878 |
_dt_add_filters(this, table_dt, filters_options); |
879 |
} |
875 |
|
880 |
|
876 |
user_colvis[tab_id][column] = state; |
881 |
user_colvis[tab_id][column] = state; |
877 |
|
882 |
|
878 |
- |
|
|