Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #2142 -- Fixed JavaScript warnings in admin JS. Thanks, mike.ca…

…pp@gmail.com

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3287 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 83c6fff22acfe3a7994105b798403f6a16208cfc 1 parent de9630c
Adrian Holovaty authored July 07, 2006
2  django/contrib/admin/media/js/admin/DateTimeShortcuts.js
@@ -217,7 +217,7 @@ var DateTimeShortcuts = {
217 217
        DateTimeShortcuts.dismissCalendar(num);
218 218
     },
219 219
     cancelEventPropagation: function(e) {
220  
-        if (!e) var e = window.event;
  220
+        if (!e) e = window.event;
221 221
         e.cancelBubble = true;
222 222
         if (e.stopPropagation) e.stopPropagation();
223 223
     }
1  django/contrib/admin/media/js/core.js
@@ -19,6 +19,7 @@ function removeEvent(obj, evType, fn) {
19 19
         return true;
20 20
     } else if (obj.detachEvent) {
21 21
         obj.detachEvent("on" + evType, fn);
  22
+        return true;
22 23
     } else {
23 24
         return false;
24 25
     }

0 notes on commit 83c6fff

Please sign in to comment.
Something went wrong with that request. Please try again.