1
0
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:
Travis Swicegood 2012-05-16 13:40:24 -05:00
parent 6e3b9962cc
commit f92c7c5df2

View File

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