From 42df98f7a2c00f6b7230401e6be86e9d8582b2e1 Mon Sep 17 00:00:00 2001 From: Lint Action Date: Wed, 8 Jun 2022 08:17:46 +0000 Subject: [PATCH] Fix code style issues with ESLint --- ereuse_devicehub/static/js/main_inventory.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;