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);
|
DateTimeShortcuts.dismissCalendar(num);
|
||||||
},
|
},
|
||||||
cancelEventPropagation: function(e) {
|
cancelEventPropagation: function(e) {
|
||||||
if (!e) var e = window.event;
|
if (!e) e = window.event;
|
||||||
e.cancelBubble = true;
|
e.cancelBubble = true;
|
||||||
if (e.stopPropagation) e.stopPropagation();
|
if (e.stopPropagation) e.stopPropagation();
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,7 @@ function removeEvent(obj, evType, fn) {
|
||||||
return true;
|
return true;
|
||||||
} else if (obj.detachEvent) {
|
} else if (obj.detachEvent) {
|
||||||
obj.detachEvent("on" + evType, fn);
|
obj.detachEvent("on" + evType, fn);
|
||||||
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue