Skip to content

Commit

Permalink
Fixed #2142 -- Fixed JavaScript warnings in admin JS. Thanks, mike.ca…
Browse files Browse the repository at this point in the history
…pp@gmail.com

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3287 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Jul 7, 2006
1 parent de9630c commit 83c6fff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion django/contrib/admin/media/js/admin/DateTimeShortcuts.js
Expand Up @@ -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();
}
Expand Down
1 change: 1 addition & 0 deletions django/contrib/admin/media/js/core.js
Expand Up @@ -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;
}
Expand Down

0 comments on commit 83c6fff

Please sign in to comment.