diff --git a/ereuse_devicehub/static/js/main_inventory.build.js b/ereuse_devicehub/static/js/main_inventory.build.js index e948d26c..0f585c6d 100644 --- a/ereuse_devicehub/static/js/main_inventory.build.js +++ b/ereuse_devicehub/static/js/main_inventory.build.js @@ -618,736 +618,6 @@ async function processSelectedDevices() { } // Initialize Actions list, and set checkbox triggers - const actions = new Actions(); - - if (eventClickActions) { - document.getElementById("ApplyDeviceLots").removeEventListener(eventClickActions); - } - - eventClickActions = document.getElementById("ApplyDeviceLots").addEventListener("click", () => { - const modal = $("#confirmLotsModal"); - modal.modal({ - keyboard: false - }); - let list_changes_html = ""; // {type: ["Remove" | "Add"], "LotID": string, "devices": number[]} - - actions.list.forEach(action => { - let type; - let devices; - - if (action.type == "Add") { - type = "success"; - devices = action.devices.filter(dev => !action.lot.devices.includes(dev.id)); // Only show affected devices - } else { - type = "danger"; - devices = action.devices.filter(dev => action.lot.devices.includes(dev.id)); // Only show affected devices - } - - list_changes_html += "\n
\n ").concat(devices.map(item => { - const name = "".concat(item.type, " ").concat(item.manufacturer, " ").concat(item.model); - return "").concat(item.devicehubID, ""); - }).join(" "), "\n
\n