Swap out to === for the true comparison to avoid possible coercion issues
This commit is contained in:
parent
6e3b9962cc
commit
f92c7c5df2
|
@ -83,7 +83,7 @@
|
||||||
$(actionCheckboxes).click(function(event) {
|
$(actionCheckboxes).click(function(event) {
|
||||||
if (!event) { event = window.event; }
|
if (!event) { event = window.event; }
|
||||||
var target = event.target ? event.target : event.srcElement;
|
var target = event.target ? event.target : event.srcElement;
|
||||||
if (lastChecked && $.data(lastChecked) != $.data(target) && event.shiftKey == true) {
|
if (lastChecked && $.data(lastChecked) != $.data(target) && event.shiftKey === true) {
|
||||||
var inrange = false;
|
var inrange = false;
|
||||||
$(lastChecked).attr("checked", target.checked)
|
$(lastChecked).attr("checked", target.checked)
|
||||||
.parent().parent().toggleClass(options.selectedClass, target.checked);
|
.parent().parent().toggleClass(options.selectedClass, target.checked);
|
||||||
|
|
Loading…
Reference in New Issue