},
"click .ui-datepicker-current": function( event ) {
event.preventDefault();
- this.select( event, new Date().getTime() );
+ this._select( event, new Date().getTime() );
},
"click .ui-datepicker-close": function( event ) {
event.preventDefault();
event.preventDefault();
// TODO exclude clicks on lead days or handle them correctly
// TODO store/read more then just date, also required for multi month picker
- this.select( event, $( event.currentTarget ).data( "timestamp" ) );
+ this._select( event, $( event.currentTarget ).data( "timestamp" ) );
if ( this.inline ) {
this.grid.focus();
}
}, this.options.position );
},
- select: function( event, time ) {
+ _select: function( event, time ) {
this.date.setTime( time ).select();
this.refresh();
if ( !this.inline ) {