@@ -125,21 +125,21 @@ $.extend(Timepicker.prototype, {
125125 }
126126 }
127127 tp_inst . _defaults = $ . extend ( { } , this . _defaults , inlineSettings , o , {
128- beforeShow : function ( input , dp_inst ) {
128+ beforeShow : function ( input , dp_inst ) {
129129 if ( $ . isFunction ( o . beforeShow ) )
130- o . beforeShow ( input , dp_inst ) ;
130+ o . beforeShow ( input , dp_inst , tp_inst ) ;
131131 } ,
132132 onChangeMonthYear : function ( year , month , dp_inst ) {
133133 // Update the time as well : this prevents the time from disappearing from the $input field.
134134 tp_inst . _updateDateTime ( dp_inst ) ;
135135 if ( $ . isFunction ( o . onChangeMonthYear ) )
136- o . onChangeMonthYear ( year , month , dp_inst ) ;
136+ o . onChangeMonthYear ( year , month , dp_inst , tp_inst ) ;
137137 } ,
138138 onClose : function ( dateText , dp_inst ) {
139139 if ( tp_inst . timeDefined === true && $input . val ( ) != '' )
140140 tp_inst . _updateDateTime ( dp_inst ) ;
141141 if ( $ . isFunction ( o . onClose ) )
142- o . onClose ( dateText , dp_inst ) ;
142+ o . onClose ( dateText , dp_inst , tp_inst ) ;
143143 } ,
144144 timepicker : tp_inst // add timepicker as a property of datepicker: $.datepicker._get(dp_inst, 'timepicker');
145145 } ) ;
0 commit comments