Commit 07102692 by Yvon

admin makeups hot fix : remove checkbox for ftop members so that we can not do…

admin makeups hot fix : remove checkbox for ftop members so that we can not do -1 makeup mass action
parent 8f5a758d
Pipeline #3206 failed with stage
in 1 minute 7 seconds
......@@ -59,8 +59,12 @@ function display_makeups_members() {
title: "",
className: "dt-body-center",
orderable: false,
render: function (data) {
return `<input type="checkbox" class="select_member_cb" id="select_member_${data}" value="${data}">`;
render: function (data, type, full) {
var html = ``;
if(full.shift_type == 'standard') { //prevent checking of ftop members so that they can't be target of makeup removal
html = `<input type="checkbox" class="select_member_cb" id="select_member_${data}" value="${data}">`;
}
return html;
},
width: "3%"
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment