Replaced string concatenations with ES6 template literals.

This commit is contained in:
imacat committed 2023-03-25 08:37:13 +08:00
1 parent bf2c7bb785
commit 73f5d63f44
10 files changed
+148 -150

No files matched your search

@@ -29,7 +29,7 @@ document.addEventListener("DOMContentLoaded", () => {
const onReorder = () => {
const accounts = Array.from(list.children);
for (let i = 0; i < accounts.length; i++) {
const no = document.getElementById("accounting-order-" + accounts[i].dataset.id + "-no");
const no = document.getElementById(`accounting-order-${accounts[i].dataset.id}-no`);
no.value = String(i + 1);
}
};