fix var
This commit is contained in:
commit
2eab043f3c
|
@ -251,9 +251,9 @@ function select_shift() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e.shiftKey) {
|
if (e.shiftKey) {
|
||||||
var start = chkboxes.index(this);
|
const start = chkboxes.index(this);
|
||||||
var end = chkboxes.index(lastChecked);
|
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;
|
lastChecked = this;
|
||||||
|
|
|
@ -240,10 +240,10 @@ function select_shift() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e.shiftKey) {
|
if (e.shiftKey) {
|
||||||
var start = chkboxes.index(this);
|
const start = chkboxes.index(this);
|
||||||
var end = chkboxes.index(lastChecked);
|
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;
|
lastChecked = this;
|
||||||
|
|
Reference in New Issue