Permalink
Browse files

Swap out to === for the true comparison to avoid possible coercion is…

…sues
  • Loading branch information...
1 parent 6e3b996 commit f92c7c5df2f6f09e3c5d4112d950c60738dea7f8 @tswicegood tswicegood committed May 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/admin/static/admin/js/actions.js
View
2 django/contrib/admin/static/admin/js/actions.js
@@ -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);

0 comments on commit f92c7c5

Please sign in to comment.