@@ -125,21 +125,21 @@ $.extend(Timepicker.prototype, {
125
125
}
126
126
}
127
127
tp_inst . _defaults = $ . extend ( { } , this . _defaults , inlineSettings , o , {
128
- beforeShow : function ( input , dp_inst ) {
128
+ beforeShow : function ( input , dp_inst ) {
129
129
if ( $ . isFunction ( o . beforeShow ) )
130
- o . beforeShow ( input , dp_inst ) ;
130
+ o . beforeShow ( input , dp_inst , tp_inst ) ;
131
131
} ,
132
132
onChangeMonthYear : function ( year , month , dp_inst ) {
133
133
// Update the time as well : this prevents the time from disappearing from the $input field.
134
134
tp_inst . _updateDateTime ( dp_inst ) ;
135
135
if ( $ . isFunction ( o . onChangeMonthYear ) )
136
- o . onChangeMonthYear ( year , month , dp_inst ) ;
136
+ o . onChangeMonthYear ( year , month , dp_inst , tp_inst ) ;
137
137
} ,
138
138
onClose : function ( dateText , dp_inst ) {
139
139
if ( tp_inst . timeDefined === true && $input . val ( ) != '' )
140
140
tp_inst . _updateDateTime ( dp_inst ) ;
141
141
if ( $ . isFunction ( o . onClose ) )
142
- o . onClose ( dateText , dp_inst ) ;
142
+ o . onClose ( dateText , dp_inst , tp_inst ) ;
143
143
} ,
144
144
timepicker : tp_inst // add timepicker as a property of datepicker: $.datepicker._get(dp_inst, 'timepicker');
145
145
} ) ;
0 commit comments