Fix code style issues with ESLint

This commit is contained in:
Lint Action 2022-06-08 08:17:46 +00:00
parent 070771c077
commit 42df98f7a2
1 changed files with 4 additions and 4 deletions

View File

@ -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;