Skip to content

Commit 4853a89

Browse files
Fix beforeShow to return value - by kunalkumar
1 parent 26776af commit 4853a89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ $.extend(Timepicker.prototype, {
147147
tp_inst._defaults = $.extend({}, this._defaults, inlineSettings, o, {
148148
beforeShow: function(input, dp_inst) {
149149
if ($.isFunction(o.beforeShow))
150-
o.beforeShow(input, dp_inst, tp_inst);
150+
return o.beforeShow(input, dp_inst, tp_inst);
151151
},
152152
onChangeMonthYear: function(year, month, dp_inst) {
153153
// Update the time as well : this prevents the time from disappearing from the $input field.

0 commit comments

Comments
 (0)