diff --git a/ereuse_devicehub/static/js/main_inventory.js b/ereuse_devicehub/static/js/main_inventory.js index 3c67f0c3..d80d6c66 100644 --- a/ereuse_devicehub/static/js/main_inventory.js +++ b/ereuse_devicehub/static/js/main_inventory.js @@ -207,7 +207,7 @@ function removeLot() { function removeTag() { const devices = TableController.getSelectedDevices(); - const devices_id = devices.map(dev => $(dev).attr('data')); + const devices_id = devices.map(dev => $(dev).attr("data")); if (devices_id.length == 1) { const url = `/inventory/tag/devices/${devices_id[0]}/del/`; window.location.href = url; @@ -218,7 +218,7 @@ function removeTag() { function addTag() { const devices = TableController.getSelectedDevices(); - const devices_id = devices.map(dev => $(dev).attr('data')); + const devices_id = devices.map(dev => $(dev).attr("data")); if (devices_id.length == 1) { $("#addingTagModal .pol").hide(); $("#addingTagModal .btn-primary").show();