mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
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:
parent
de9630c60e
commit
83c6fff22a
@ -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();
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user