diff -r 7ab8669905c3 django/contrib/admin/media/css/widgets.css
a
|
b
|
|
301 | 301 | color: #ccc; |
302 | 302 | } |
303 | 303 | |
304 | | .calendarbox .calendarnav-previous, .calendarbox .calendarnav-next { |
| 304 | .calendarbox .calendarnav-previous, .calendarbox .calendarnav-next, .calendarbox .calendarnav-previous-year, .calendarbox .calendarnav-next-year { |
305 | 305 | display: block; |
306 | 306 | position: absolute; |
307 | 307 | font-weight: bold; |
… |
… |
|
311 | 311 | color: white; |
312 | 312 | } |
313 | 313 | |
314 | | .calendarnav-previous:hover, .calendarnav-next:hover { |
| 314 | .calendarnav-previous:hover, .calendarnav-next:hover, .calendarnav-previous-year:hover, .calendarnav-next-year:hover { |
315 | 315 | background: #036; |
316 | 316 | } |
317 | 317 | |
318 | 318 | .calendarnav-previous { |
| 319 | top:0; |
| 320 | left:15px; |
| 321 | } |
| 322 | |
| 323 | .calendarnav-next { |
| 324 | top:0; |
| 325 | right:15px; |
| 326 | } |
| 327 | |
| 328 | .calendarnav-previous-year { |
319 | 329 | top: 0; |
320 | 330 | left: 0; |
321 | 331 | } |
322 | 332 | |
323 | | .calendarnav-next { |
| 333 | .calendarnav-next-year { |
324 | 334 | top: 0; |
325 | 335 | right: 0; |
326 | 336 | } |
diff -r 7ab8669905c3 django/contrib/admin/media/js/admin/DateTimeShortcuts.js
a
|
b
|
|
168 | 168 | |
169 | 169 | // next-prev links |
170 | 170 | var cal_nav = quickElement('div', cal_box, ''); |
171 | | var cal_nav_prev = quickElement('a', cal_nav, '<', 'href', 'javascript:DateTimeShortcuts.drawPrev('+num+');'); |
| 171 | var cal_nav_prev = quickElement('a', cal_nav, '‹', 'href', 'javascript:DateTimeShortcuts.drawPrev('+num+');'); |
172 | 172 | cal_nav_prev.className = 'calendarnav-previous'; |
173 | | var cal_nav_next = quickElement('a', cal_nav, '>', 'href', 'javascript:DateTimeShortcuts.drawNext('+num+');'); |
| 173 | var cal_nav_next = quickElement('a', cal_nav, '›', 'href', 'javascript:DateTimeShortcuts.drawNext('+num+');'); |
174 | 174 | cal_nav_next.className = 'calendarnav-next'; |
175 | 175 | |
| 176 | var cal_nav_prev_year = quickElement('a', cal_nav, '«', 'href', 'javascript:DateTimeShortcuts.drawPrevYear('+num+');'); |
| 177 | cal_nav_prev_year.className = 'calendarnav-previous-year'; |
| 178 | var cal_nav_next_year = quickElement('a', cal_nav, '»', 'href', 'javascript:DateTimeShortcuts.drawNextYear('+num+');'); |
| 179 | cal_nav_next_year.className = 'calendarnav-next-year'; |
| 180 | |
| 181 | |
176 | 182 | // main box |
177 | 183 | var cal_main = quickElement('div', cal_box, '', 'id', DateTimeShortcuts.calendarDivName2 + num); |
178 | 184 | cal_main.className = 'calendar'; |
… |
… |
|
230 | 236 | document.getElementById(DateTimeShortcuts.calendarDivName1+num).style.display = 'none'; |
231 | 237 | window.document.onclick = null; |
232 | 238 | }, |
| 239 | drawPrevYear: function(num) { |
| 240 | DateTimeShortcuts.calendars[num].drawPreviousYear(); |
| 241 | }, |
| 242 | drawNextYear: function(num) { |
| 243 | DateTimeShortcuts.calendars[num].drawNextYear(); |
| 244 | }, |
233 | 245 | drawPrev: function(num) { |
234 | 246 | DateTimeShortcuts.calendars[num].drawPreviousMonth(); |
235 | 247 | }, |