Lines 123-129
Link Here
|
123 |
let tab_id = $(this).data("tab"); |
123 |
let tab_id = $(this).data("tab"); |
124 |
let tab = $("#"+tab_id); |
124 |
let tab = $("#"+tab_id); |
125 |
tab.find("input[name='itemnumber'][type='checkbox']").each( (i, input) => { |
125 |
tab.find("input[name='itemnumber'][type='checkbox']").each( (i, input) => { |
126 |
items_selection[tab_id].push($(input).val()); |
126 |
let itemnumber = parseInt($(input).val()); |
|
|
127 |
items_selection[tab_id].push(itemnumber); |
127 |
$(input).prop('checked', true); |
128 |
$(input).prop('checked', true); |
128 |
}); |
129 |
}); |
129 |
itemSelectionBuildActionLinks(tab_id); |
130 |
itemSelectionBuildActionLinks(tab_id); |
Lines 146-151
Link Here
|
146 |
tab.find(".hide_filters").show(); |
147 |
tab.find(".hide_filters").show(); |
147 |
$("#"+tab_id+"_table thead tr:eq(1)").remove(); |
148 |
$("#"+tab_id+"_table thead tr:eq(1)").remove(); |
148 |
build_items_table(tab_id, true, { destroy: true }, build_items_table_drawncallback ); |
149 |
build_items_table(tab_id, true, { destroy: true }, build_items_table_drawncallback ); |
|
|
150 |
itemSelectionBuildActionLinks(tab_id); |
149 |
}); |
151 |
}); |
150 |
|
152 |
|
151 |
$(".hide_filters").on("click",function(e){ |
153 |
$(".hide_filters").on("click",function(e){ |
Lines 156-161
Link Here
|
156 |
tab.find(".show_filters").show(); |
158 |
tab.find(".show_filters").show(); |
157 |
$("#"+tab_id+"_table thead tr:eq(1)").remove(); |
159 |
$("#"+tab_id+"_table thead tr:eq(1)").remove(); |
158 |
build_items_table(tab_id, false, { destroy: true }, build_items_table_drawncallback ); |
160 |
build_items_table(tab_id, false, { destroy: true }, build_items_table_drawncallback ); |
|
|
161 |
itemSelectionBuildActionLinks(tab_id); |
159 |
}); |
162 |
}); |
160 |
}); |
163 |
}); |
161 |
[% END %] |
164 |
[% END %] |
162 |
- |
|
|