diff --git a/ereuse_devicehub/static/js/main_inventory.build.js b/ereuse_devicehub/static/js/main_inventory.build.js index 0f585c6d..16bb720a 100644 --- a/ereuse_devicehub/static/js/main_inventory.build.js +++ b/ereuse_devicehub/static/js/main_inventory.build.js @@ -251,9 +251,9 @@ function select_shift() { } if (e.shiftKey) { - var start = chkboxes.index(this); - var end = chkboxes.index(lastChecked); - chkboxes.slice(Math.min(start, end), Math.max(start, end) + 1).prop('checked', lastChecked.checked); + const start = chkboxes.index(this); + const end = chkboxes.index(lastChecked); + chkboxes.slice(Math.min(start, end), Math.max(start, end) + 1).prop("checked", lastChecked.checked); } lastChecked = this; diff --git a/ereuse_devicehub/static/js/main_inventory.js b/ereuse_devicehub/static/js/main_inventory.js index bab2e47a..a7ca9b7b 100644 --- a/ereuse_devicehub/static/js/main_inventory.js +++ b/ereuse_devicehub/static/js/main_inventory.js @@ -240,10 +240,10 @@ function select_shift() { } if (e.shiftKey) { - var start = chkboxes.index(this); - var end = chkboxes.index(lastChecked); + const start = chkboxes.index(this); + const end = chkboxes.index(lastChecked); - chkboxes.slice(Math.min(start,end), Math.max(start,end)+ 1).prop('checked', lastChecked.checked); + chkboxes.slice(Math.min(start,end), Math.max(start,end)+ 1).prop("checked", lastChecked.checked); } lastChecked = this;