Calendar: Remove select callback reference

This commit is contained in:
Felix Nagel 2014-06-04 23:40:39 +02:00 committed by Scott González
parent f88a06352a
commit 6ef023f0e4
2 changed files with 4 additions and 8 deletions

View File

@ -414,11 +414,7 @@ return $.widget( "ui.calendar", {
_select: function( event, time ) {
this._setOption( "value", new Date( time ) );
this._trigger( "select", event, {
// TODO Replace with value option to initialise and read
date: this.value()
});
this._trigger( "select", event );
},
value: function( value ) {

View File

@ -98,11 +98,11 @@ $.widget( "ui.datepicker", {
numberOfMonths: this.options.numberOfMonths,
showWeek: this.options.showWeek,
value: this._getParsedValue(),
select: function( event, data ) {
that.element.val( data.date );
select: function( event ) {
that.element.val( that.calendarInstance.value() );
that.close();
that._focusTrigger();
that._trigger( "select", event, data);
that._trigger( "select", event );
}
})
.calendar( "instance" );