Fixed #2142 -- Fixed JavaScript warnings in admin JS. Thanks, mike.capp@gmail.com

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3287 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-07-07 04:11:10 +00:00
parent de9630c60e
commit 83c6fff22a
2 changed files with 2 additions and 1 deletions

View File

@ -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 File

@ -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;
}