Opened 8 years ago

Closed 8 years ago

#27913 closed Bug (invalid)

Admin calendar failed

Reported by: Martín Peveri Owned by: nobody
Component: contrib.admin Version: 1.10
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When I select a date in the calendar, the javascript console will trigger the following error:

Uncaught TypeError: callback is not a function at HTMLAnchorElement.onClick (calendar.js:106)

Change History (5)

comment:1 by Tim Graham, 8 years ago

Could you please add more details? Are you using any third-party apps which may be causing the problem? Does it reproduce across all browsers? Can you provide a sample project that reproduces the problem? I don't see any errors in Firefox using the date picker at /admin/polls/question/add/ in the Django tutorial.

comment:2 by Martín Peveri, 8 years ago

Yes, i am using https://github.com/fabiocaccamo/django-admin-interface. Django-admin-interface does not have the calendar.js file.

In this line is the error: https://github.com/django/django/blob/3c447b108ac70757001171f7a4791f493880bf5b/django/contrib/admin/static/admin/js/calendar.js#L106

It happens to me in all browsers.

Thanks!

comment:3 by Tim Graham, 8 years ago

Please explain why Django is at fault rather than the third-party app. If you could provide a patch, that would be ideal.

comment:4 by Martín Peveri, 8 years ago

Because the application does not have that calendar.js file. I'll check it out to see what I find

comment:5 by Martín Peveri, 8 years ago

Resolution: invalid
Status: newclosed

The error was from the third-party application.

Thanks!

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