diff --git a/ereuse_devicehub/static/js/main.js b/ereuse_devicehub/static/js/main.js index 1dbaaeb0..996d8b23 100644 --- a/ereuse_devicehub/static/js/main.js +++ b/ereuse_devicehub/static/js/main.js @@ -14,9 +14,9 @@ el = el.trim() if (all) { return [...document.querySelectorAll(el)] - } - return document.querySelector(el) - + } + return document.querySelector(el) + } /** diff --git a/ereuse_devicehub/static/js/main_inventory.js b/ereuse_devicehub/static/js/main_inventory.js index 7bccb247..5d4fedf3 100644 --- a/ereuse_devicehub/static/js/main_inventory.js +++ b/ereuse_devicehub/static/js/main_inventory.js @@ -51,7 +51,7 @@ class TableController { /** * @returns All inputs from current page in device list */ - static getAllDevicesInCurrentPage() { + static getAllDevicesInCurrentPage() { return this.#tableRowsPage() .map(element => element.querySelector("input")) } @@ -65,7 +65,7 @@ class TableController { return DOMElements.map(element => { const info = {} info.checked = element.checked - Object.values(element.attributes).forEach(attrib => {info[attrib.nodeName.replace(/-/g, "_")] = attrib.nodeValue}) + Object.values(element.attributes).forEach(attrib => { info[attrib.nodeName.replace(/-/g, "_")] = attrib.nodeValue }) return info }) }