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 ) {
|
_select: function( event, time ) {
|
||||||
this._setOption( "value", new Date( time ) );
|
this._setOption( "value", new Date( time ) );
|
||||||
this._trigger( "select", event, {
|
this._trigger( "select", event );
|
||||||
|
|
||||||
// TODO Replace with value option to initialise and read
|
|
||||||
date: this.value()
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
value: function( value ) {
|
value: function( value ) {
|
||||||
|
@ -98,11 +98,11 @@ $.widget( "ui.datepicker", {
|
|||||||
numberOfMonths: this.options.numberOfMonths,
|
numberOfMonths: this.options.numberOfMonths,
|
||||||
showWeek: this.options.showWeek,
|
showWeek: this.options.showWeek,
|
||||||
value: this._getParsedValue(),
|
value: this._getParsedValue(),
|
||||||
select: function( event, data ) {
|
select: function( event ) {
|
||||||
that.element.val( data.date );
|
that.element.val( that.calendarInstance.value() );
|
||||||
that.close();
|
that.close();
|
||||||
that._focusTrigger();
|
that._focusTrigger();
|
||||||
that._trigger( "select", event, data);
|
that._trigger( "select", event );
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.calendar( "instance" );
|
.calendar( "instance" );
|
||||||
|
Loading…
Reference in New Issue
Block a user