Permalink
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...
1 parent de9630c commit 83c6fff22acfe3a7994105b798403f6a16208cfc @adrianholovaty adrianholovaty committed Jul 7, 2006
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;
}

0 comments on commit 83c6fff

Please sign in to comment.