Kaydet (Commit) 83c6fff2 authored tarafından Adrian Holovaty's avatar Adrian Holovaty

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
üst de9630c6
...@@ -217,7 +217,7 @@ var DateTimeShortcuts = { ...@@ -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) { ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment