Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…sues
  • Loading branch information...
commit f92c7c5df2f6f09e3c5d4112d950c60738dea7f8 1 parent 6e3b996
@tswicegood tswicegood authored
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);
Please sign in to comment.
Something went wrong with that request. Please try again.