Opened 6 years ago

Closed 6 years ago

#9642 closed (fixed)

make calender/clock window close normally in IE

Reported by: northtea Owned by: nobody
Component: contrib.admin Version: master
Severity: Keywords: calender
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

In "django/contrib/admin/media/js/admin/DateTimeShortcuts.js", an "onClick" envent is attached to "window" object to close the calendar window. It works fine in Firefox, but not in IE.
I just change the attach target from "window" to "window.document" which goes well in IE.

Attachments (1)

patch.txt (1.5 KB) - added by northtea 6 years ago.

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by northtea

comment:1 Changed 6 years ago by northtea

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Version changed from 1.0 to SVN

comment:2 Changed 6 years ago by kmtracey

  • Resolution set to fixed
  • Status changed from new to closed

(In [9514]) Fixed #9642 -- Made the admin calendar/clock popups go away when the users clicks outside them. The previous javascript code did not work on IE. Thanks northtea for the report and patch.

Note: See TracTickets for help on using tickets.
Back to Top