Ticket #9388: 9388-r16225.diff

File 9388-r16225.diff, 3.0 KB (added by Ramiro Morales, 13 years ago)

Patch updated to r16225

  • django/contrib/admin/media/css/widgets.css

    diff --git a/django/contrib/admin/media/css/widgets.css b/django/contrib/admin/media/css/widgets.css
    a b  
    309309    color: #ccc;
    310310}
    311311
    312 .calendarbox .calendarnav-previous, .calendarbox .calendarnav-next {
     312.calendarbox .calendarnav-previous, .calendarbox .calendarnav-next, .calendarbox .calendarnav-previous-year, .calendarbox .calendarnav-next-year {
    313313    display: block;
    314314    position: absolute;
    315315    font-weight: bold;
     
    319319    color: white;
    320320}
    321321
    322 .calendarnav-previous:hover, .calendarnav-next:hover {
     322.calendarnav-previous:hover, .calendarnav-next:hover, .calendarnav-previous-year:hover, .calendarnav-next-year:hover {
    323323    background: #036;
    324324}
    325325
    326326.calendarnav-previous {
     327    top:0;
     328    left:15px;
     329}
     330
     331.calendarnav-next {
     332    top:0;
     333    right:15px;
     334}
     335
     336.calendarnav-previous-year {
    327337    top: 0;
    328338    left: 0;
    329339}
    330340
    331 .calendarnav-next {
     341.calendarnav-next-year {
    332342    top: 0;
    333343    right: 0;
    334344}
  • django/contrib/admin/media/js/admin/DateTimeShortcuts.js

    diff --git a/django/contrib/admin/media/js/admin/DateTimeShortcuts.js b/django/contrib/admin/media/js/admin/DateTimeShortcuts.js
    a b  
    171171
    172172        // next-prev links
    173173        var cal_nav = quickElement('div', cal_box, '');
    174         var cal_nav_prev = quickElement('a', cal_nav, '<', 'href', 'javascript:DateTimeShortcuts.drawPrev('+num+');');
     174        var cal_nav_prev = quickElement('a', cal_nav, '', 'href', 'javascript:DateTimeShortcuts.drawPrev('+num+');');
    175175        cal_nav_prev.className = 'calendarnav-previous';
    176         var cal_nav_next = quickElement('a', cal_nav, '>', 'href', 'javascript:DateTimeShortcuts.drawNext('+num+');');
     176        var cal_nav_next = quickElement('a', cal_nav, '', 'href', 'javascript:DateTimeShortcuts.drawNext('+num+');');
    177177        cal_nav_next.className = 'calendarnav-next';
    178178
     179        var cal_nav_prev_year = quickElement('a', cal_nav, '«', 'href', 'javascript:DateTimeShortcuts.drawPrevYear('+num+');');
     180        cal_nav_prev_year.className = 'calendarnav-previous-year';
     181        var cal_nav_next_year = quickElement('a', cal_nav, '»', 'href', 'javascript:DateTimeShortcuts.drawNextYear('+num+');');
     182        cal_nav_next_year.className = 'calendarnav-next-year';
     183
     184
    179185        // main box
    180186        var cal_main = quickElement('div', cal_box, '', 'id', DateTimeShortcuts.calendarDivName2 + num);
    181187        cal_main.className = 'calendar';
     
    233239        document.getElementById(DateTimeShortcuts.calendarDivName1+num).style.display = 'none';
    234240        window.document.onclick = null;
    235241    },
     242    drawPrevYear: function(num) {
     243        DateTimeShortcuts.calendars[num].drawPreviousYear();
     244    },
     245    drawNextYear: function(num) {
     246        DateTimeShortcuts.calendars[num].drawNextYear();
     247    },
    236248    drawPrev: function(num) {
    237249        DateTimeShortcuts.calendars[num].drawPreviousMonth();
    238250    },
Back to Top