diff --git a/ereuse_devicehub/static/js/api.js b/ereuse_devicehub/static/js/api.js index abf6df89..190e5d42 100644 --- a/ereuse_devicehub/static/js/api.js +++ b/ereuse_devicehub/static/js/api.js @@ -38,7 +38,7 @@ const Api = { */ async devices_add(lotID, listDevices) { const queryURL = `${API_URLS.devices_modify.replace("UUID", lotID) }?${ listDevices.map(deviceID => `id=${ deviceID}`).join("&")}`; - return await Api.doRequest(queryURL, "POST", null); + return Api.doRequest(queryURL, "POST", null); }, /** @@ -48,7 +48,7 @@ const Api = { */ async devices_remove(lotID, listDevices) { const queryURL = `${API_URLS.devices_modify.replace("UUID", lotID) }?${ listDevices.map(deviceID => `id=${ deviceID}`).join("&")}`; - return await Api.doRequest(queryURL, "DELETE", null); + return Api.doRequest(queryURL, "DELETE", null); }, /** diff --git a/ereuse_devicehub/static/js/main.js b/ereuse_devicehub/static/js/main.js index f8a97d3a..55a4951c 100644 --- a/ereuse_devicehub/static/js/main.js +++ b/ereuse_devicehub/static/js/main.js @@ -240,7 +240,7 @@ btnSelectAll.addEventListener("click", event => { const checkedState = event.target.checked; - tableListCheckboxes.forEach(ckeckbox => ckeckbox.checked = checkedState); + tableListCheckboxes.forEach(ckeckbox => {ckeckbox.checked = checkedState}); }) /**