0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01: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);