diff --git a/ereuse_devicehub/static/js/main_inventory.js b/ereuse_devicehub/static/js/main_inventory.js index 55b6900a..f5b2b485 100644 --- a/ereuse_devicehub/static/js/main_inventory.js +++ b/ereuse_devicehub/static/js/main_inventory.js @@ -231,7 +231,7 @@ function addTag() { } function select_shift() { - const chkboxes = $('.deviceSelect'); + const chkboxes = $(".deviceSelect"); lastChecked = null; chkboxes.click(function(e) { if (!lastChecked) { @@ -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;