From 4853a89b9dd86fe711b6308c6db77af6d86efce1 Mon Sep 17 00:00:00 2001 From: Trent Date: Tue, 27 Dec 2011 15:18:26 -0500 Subject: [PATCH] Fix beforeShow to return value - by kunalkumar --- jquery-ui-timepicker-addon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery-ui-timepicker-addon.js b/jquery-ui-timepicker-addon.js index d670eca..93db91c 100644 --- a/jquery-ui-timepicker-addon.js +++ b/jquery-ui-timepicker-addon.js @@ -147,7 +147,7 @@ $.extend(Timepicker.prototype, { tp_inst._defaults = $.extend({}, this._defaults, inlineSettings, o, { beforeShow: function(input, dp_inst) { if ($.isFunction(o.beforeShow)) - o.beforeShow(input, dp_inst, tp_inst); + return o.beforeShow(input, dp_inst, tp_inst); }, onChangeMonthYear: function(year, month, dp_inst) { // Update the time as well : this prevents the time from disappearing from the $input field.