r77199 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77198‎ | r77199 | r77200 >
Date:22:53, 23 November 2010
Author:tparscal
Status:ok
Tags:
Comment:
Set datepicker to extend back to the year 1800 - the UI is pretty streamlined for recent dates, more work would need to happen to get this datepicker to be easy to use for very old dates. Even with 1800, the user has to click the select control and then the oldest item once for each 10 years back in time from today, which as of today is about 21 times... Nonetheless, this can reasonably solve bug #24698 for now, a more robust solution would server users better though.
Modified paths:
  • /trunk/extensions/UploadWizard/resources/mw.UploadWizard.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js
@@ -893,7 +893,9 @@
894894 changeYear: true,
895895 showAnim: 'slideDown',
896896 altField: '#' + dateInputId,
897 - altFormat: 'yy-mm-dd' } )
 897+ altFormat: 'yy-mm-dd',
 898+ minDate: new Date( 1800, 0, 1 ),
 899+ } )
898900 .click( function() { $j( this ).datepicker( 'show' ); } )
899901 .readonly();
900902

Follow-up revisions

RevisionCommit summaryAuthorDate
r77201Rebuild combined files for r77199.tparscal22:54, 23 November 2010

Status & tagging log