diff --git a/django/contrib/admin/media/css/widgets.css b/django/contrib/admin/media/css/widgets.css
a
|
b
|
|
309 | 309 | color: #ccc; |
310 | 310 | } |
311 | 311 | |
312 | | .calendarbox .calendarnav-previous, .calendarbox .calendarnav-next { |
| 312 | .calendarbox .calendarnav-previous, .calendarbox .calendarnav-next, .calendarbox .calendarnav-previous-year, .calendarbox .calendarnav-next-year { |
313 | 313 | display: block; |
314 | 314 | position: absolute; |
315 | 315 | font-weight: bold; |
… |
… |
|
319 | 319 | color: white; |
320 | 320 | } |
321 | 321 | |
322 | | .calendarnav-previous:hover, .calendarnav-next:hover { |
| 322 | .calendarnav-previous:hover, .calendarnav-next:hover, .calendarnav-previous-year:hover, .calendarnav-next-year:hover { |
323 | 323 | background: #036; |
324 | 324 | } |
325 | 325 | |
326 | 326 | .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 { |
327 | 337 | top: 0; |
328 | 338 | left: 0; |
329 | 339 | } |
330 | 340 | |
331 | | .calendarnav-next { |
| 341 | .calendarnav-next-year { |
332 | 342 | top: 0; |
333 | 343 | right: 0; |
334 | 344 | } |
diff --git a/django/contrib/admin/media/js/admin/DateTimeShortcuts.js b/django/contrib/admin/media/js/admin/DateTimeShortcuts.js
a
|
b
|
|
171 | 171 | |
172 | 172 | // next-prev links |
173 | 173 | 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+');'); |
175 | 175 | 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+');'); |
177 | 177 | cal_nav_next.className = 'calendarnav-next'; |
178 | 178 | |
| 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 | |
179 | 185 | // main box |
180 | 186 | var cal_main = quickElement('div', cal_box, '', 'id', DateTimeShortcuts.calendarDivName2 + num); |
181 | 187 | cal_main.className = 'calendar'; |
… |
… |
|
233 | 239 | document.getElementById(DateTimeShortcuts.calendarDivName1+num).style.display = 'none'; |
234 | 240 | window.document.onclick = null; |
235 | 241 | }, |
| 242 | drawPrevYear: function(num) { |
| 243 | DateTimeShortcuts.calendars[num].drawPreviousYear(); |
| 244 | }, |
| 245 | drawNextYear: function(num) { |
| 246 | DateTimeShortcuts.calendars[num].drawNextYear(); |
| 247 | }, |
236 | 248 | drawPrev: function(num) { |
237 | 249 | DateTimeShortcuts.calendars[num].drawPreviousMonth(); |
238 | 250 | }, |