aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets/datepicker.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/widgets/datepicker.js')
-rw-r--r--ui/widgets/datepicker.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/ui/widgets/datepicker.js b/ui/widgets/datepicker.js
index b489fe9b7..1325434d3 100644
--- a/ui/widgets/datepicker.js
+++ b/ui/widgets/datepicker.js
@@ -111,14 +111,18 @@ var widget = $.widget( "ui.datepicker", {
.calendar( $.extend( {}, this.options, {
value: this._parse( this.element.val() ),
change: function( event ) {
- that._trigger( "change", event );
+ that._trigger( "change", event, {
+ value: that.calendarInstance.valueAsDate()
+ } );
},
select: function( event ) {
that.element.val( that.calendarInstance.value() );
that.close();
event.preventDefault();
that._focusTrigger();
- that._trigger( "select", event );
+ that._trigger( "select", event, {
+ value: that.calendarInstance.valueAsDate()
+ } );
return false;
}
@@ -183,7 +187,9 @@ var widget = $.widget( "ui.datepicker", {
this.suppressExpandOnFocus = false;
},
change: function( event ) {
- this._trigger( "change", event );
+ this._trigger( "change", event, {
+ value: this.calendarInstance.valueAsDate()
+ } );
}
},