mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Calendar: Remove select callback reference
This commit is contained in:
parent
f88a06352a
commit
6ef023f0e4
@ -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 ) {
|
||||
|
@ -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" );
|
||||
|
Loading…
Reference in New Issue
Block a user