Lines 105-115
Link Here
|
105 |
function itemSelectionBuildActionLinks(tab_id) { |
105 |
function itemSelectionBuildActionLinks(tab_id) { |
106 |
var delete_link_ok = itemSelectionBuildDeleteLink(tab_id); |
106 |
var delete_link_ok = itemSelectionBuildDeleteLink(tab_id); |
107 |
var modify_link_ok = itemSelectionBuildModifyLink(tab_id); |
107 |
var modify_link_ok = itemSelectionBuildModifyLink(tab_id); |
108 |
var div = $("#" + tab_id); |
108 |
var tab = $("#" + tab_id); |
109 |
if (modify_link_ok || delete_link_ok) { |
109 |
if (modify_link_ok || delete_link_ok) { |
110 |
$('.itemselection_actions', div).show(); |
110 |
$('.itemselection_actions', tab).show(); |
111 |
} else { |
111 |
} else { |
112 |
$('.itemselection_actions', div).hide(); |
112 |
$('.itemselection_actions', tab).hide(); |
113 |
} |
113 |
} |
114 |
} |
114 |
} |
115 |
|
115 |
|
Lines 117-132
Link Here
|
117 |
|
117 |
|
118 |
$(".SelectAll").on("click",function(e){ |
118 |
$(".SelectAll").on("click",function(e){ |
119 |
e.preventDefault(); |
119 |
e.preventDefault(); |
120 |
var tab = $(this).data("tab"); |
120 |
let tab_id = $(this).data("tab"); |
121 |
$("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', true); |
121 |
let tab = $("#"+tab_id); |
122 |
itemSelectionBuildActionLinks(tab); |
122 |
tab.find("input[name='itemnumber'][type='checkbox']").each( (i, input) => { |
|
|
123 |
items_selection[tab_id].push($(input).val()); |
124 |
$(input).prop('checked', true); |
125 |
}); |
126 |
itemSelectionBuildActionLinks(tab_id); |
123 |
}); |
127 |
}); |
124 |
|
128 |
|
125 |
$(".ClearAll").on("click",function(e){ |
129 |
$(".ClearAll").on("click",function(e){ |
126 |
e.preventDefault(); |
130 |
e.preventDefault(); |
127 |
var tab = $(this).data("tab"); |
131 |
let tab_id = $(this).data("tab"); |
128 |
$("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', false); |
132 |
let tab = $("#"+tab_id); |
129 |
itemSelectionBuildActionLinks(tab); |
133 |
items_selection[tab_id] = []; |
|
|
134 |
$("input[name='itemnumber'][type='checkbox']", tab).prop('checked', false); |
135 |
itemSelectionBuildActionLinks(tab_id); |
130 |
}); |
136 |
}); |
131 |
|
137 |
|
132 |
$(".show_filters").on("click",function(e){ |
138 |
$(".show_filters").on("click",function(e){ |
133 |
- |
|
|