Skip to content

Commit a7e246e

Browse files
committed
rename variables to match convention
1 parent 8b96027 commit a7e246e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/resources/views/crud/columns/inc/bulk_actions_checkbox.blade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ function addOrRemoveCrudCheckedItem(element) {
3030
if (crud.lastCheckedItem && e.shiftKey) {
3131
let getNodeindex = elm => [...elm.parentNode.children].indexOf(elm);
3232
let first = document.querySelector(`input.crud_bulk_actions_line_checkbox[data-primary-key-value="${crud.lastCheckedItem}"]`).closest('tr');
33-
let end = document.querySelector(`input.crud_bulk_actions_line_checkbox[data-primary-key-value="${primaryKeyValue}"]`).closest('tr');
33+
let last = document.querySelector(`input.crud_bulk_actions_line_checkbox[data-primary-key-value="${primaryKeyValue}"]`).closest('tr');
3434
let firstIndex = getNodeindex(first);
35-
let endIndex = getNodeindex(end)
35+
let lastIndex = getNodeindex(last)
3636
37-
while(first !== end) {
38-
first = firstIndex < endIndex ? first.nextElementSibling : first.previousElementSibling;
37+
while(first !== last) {
38+
first = firstIndex < lastIndex ? first.nextElementSibling : first.previousElementSibling;
3939
first.querySelector('input.crud_bulk_actions_line_checkbox:not(:checked)')?.click();
4040
}
4141
}

0 commit comments

Comments
 (0)