Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #2142 -- Fixed JavaScript warnings in admin JS. Thanks, mike.ca…

…pp@gmail.com

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3287 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 83c6fff22acfe3a7994105b798403f6a16208cfc 1 parent de9630c
@adrianholovaty adrianholovaty authored
View
2  django/contrib/admin/media/js/admin/DateTimeShortcuts.js
@@ -217,7 +217,7 @@ var DateTimeShortcuts = {
DateTimeShortcuts.dismissCalendar(num);
},
cancelEventPropagation: function(e) {
- if (!e) var e = window.event;
+ if (!e) e = window.event;
e.cancelBubble = true;
if (e.stopPropagation) e.stopPropagation();
}
View
1  django/contrib/admin/media/js/core.js
@@ -19,6 +19,7 @@ function removeEvent(obj, evType, fn) {
return true;
} else if (obj.detachEvent) {
obj.detachEvent("on" + evType, fn);
+ return true;
} else {
return false;
}
Please sign in to comment.
Something went wrong with that request. Please try again.