Ticket #9576: widgets.diff

File widgets.diff, 954 bytes (added by Wayne K. Werner, 16 years ago)

add core.js to admin date/time widgets

  • widgets.py

     
    4141
    4242class AdminDateWidget(forms.TextInput):
    4343    class Media:
    44         js = (settings.ADMIN_MEDIA_PREFIX + "js/calendar.js",
     44        js = (settings.ADMIN_MEDIA_PREFIX + "js/core.js",
     45              settings.ADMIN_MEDIA_PREFIX + "js/calendar.js",
    4546              settings.ADMIN_MEDIA_PREFIX + "js/admin/DateTimeShortcuts.js")
    4647
    4748    def __init__(self, attrs={}):
     
    4950
    5051class AdminTimeWidget(forms.TextInput):
    5152    class Media:
    52         js = (settings.ADMIN_MEDIA_PREFIX + "js/calendar.js",
     53        js = (settings.ADMIN_MEDIA_PREFIX + "js/core.js",
     54              settings.ADMIN_MEDIA_PREFIX + "js/calendar.js",
    5355              settings.ADMIN_MEDIA_PREFIX + "js/admin/DateTimeShortcuts.js")
    5456
    5557    def __init__(self, attrs={}):
Back to Top