summaryrefslogtreecommitdiffstats
path: root/jquery-ui-timepicker-addon.js
diff options
context:
space:
mode:
authorTrent <trentdrichardson@gmail.com>2011-12-27 15:18:26 -0500
committerTrent <trentdrichardson@gmail.com>2011-12-27 15:18:26 -0500
commit4853a89b9dd86fe711b6308c6db77af6d86efce1 (patch)
tree552b4bfa3f98c710911e8899ae70acaa774538a2 /jquery-ui-timepicker-addon.js
parent26776afeb2568ea1a930b3d7d30141015c28aa57 (diff)
downloadjQuery-Timepicker-Addon-4853a89b9dd86fe711b6308c6db77af6d86efce1.zip
jQuery-Timepicker-Addon-4853a89b9dd86fe711b6308c6db77af6d86efce1.tar.gz
jQuery-Timepicker-Addon-4853a89b9dd86fe711b6308c6db77af6d86efce1.tar.bz2
Fix beforeShow to return value - by kunalkumar
Diffstat (limited to 'jquery-ui-timepicker-addon.js')
-rw-r--r--jquery-ui-timepicker-addon.js2
1 files changed, 1 insertions, 1 deletions
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.