mirror of
https://github.com/django/django.git
synced 2024-12-24 01:55:49 +00:00
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) {
|
||||
if (!event) { event = window.event; }
|
||||
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;
|
||||
$(lastChecked).attr("checked", target.checked)
|
||||
.parent().parent().toggleClass(options.selectedClass, target.checked);
|
||||
|
Loading…
Reference in New Issue
Block a user