mootools-datepicker
mootools-datepicker copied to clipboard
cannot show manually with dp.show()
dp = new DatePicker([], {
pickerClass: 'datepicker',
inject: 'cal',
draggable: false
});
dp.show();
since my upgrade to version 1.2.1 this works no more. I think the event "open" is not handled anymore? why?
I now added to the datepicker constructor:
this.addEvent('show', function(){
// This is where we store the selected date
if (!this.currentView || !options.openLastView) this.currentView = options.startView;
this.date = limitDate(new Date(), options.minDate, options.maxDate);
this.setColumns(this.originalColumns);
}.bind(this), true);