I have a datepicker with changeyear: true. The \'year\' drop down displays the title as 2009, then instead of the next year below the title being 2008, 2007, 2006 and so on
I think the best way to hack the plugin without ripping it is assigning a event handler to the year select item.
//Hack for reverting year order
$(document.body).delegate('select.ui-datepicker-year', 'mousedown', function() {
(function(sel) {
var el = $(sel);
var ops = $(el).children().get();
if ( ops.length > 0 && $(ops).first().val() < $(ops).last().val() ) {
$(el).empty();
$(el).html(ops.reverse());
}
})(this);
});
This code must work fine! :P