Adding a "Deselect All" button #9
|
@ -66,9 +66,8 @@ document.addEventListener("click", (e) => {
|
||||||
hideModal("loadModal");
|
hideModal("loadModal");
|
||||||
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (action.includes("deselectAll")) {
|
else if (action.includes("deselectAll")) {
|
||||||
var container = document.getElementById("editSelectionContainer");
|
let container = document.getElementById("editSelectionContainer");
|
||||||
deselectAll(container);
|
deselectAll(container);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -194,7 +194,7 @@ const getSelectionData = (container = null, keys = null, keysLength = 0) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const deselectAll = (container = null) => {
|
const deselectAll = (container = null) => {
|
||||||
var selAlls = container.querySelectorAll('.selAll');
|
let selAlls = container.querySelectorAll('.selAll');
|
||||||
for (var i = 0; i < selAlls.length; i++) {
|
for (var i = 0; i < selAlls.length; i++) {
|
||||||
var selAll = selAlls[i];
|
var selAll = selAlls[i];
|
||||||
selAll.checked = false;
|
selAll.checked = false;
|
||||||
|
|
Loading…
Reference in New Issue
Please change from "var" to "let"