summaryrefslogtreecommitdiffstats
path: root/jquery-ui-timepicker-addon.js
diff options
context:
space:
mode:
authorTrent Richardson <trentdrichardson@gmail.com>2011-03-08 13:21:00 -0500
committerTrent Richardson <trentdrichardson@gmail.com>2011-03-08 13:21:00 -0500
commit1a2a371deb914b43cbed118b3b6c60535d5c2753 (patch)
tree05bb9cc4ae1eaa1f1c6197511a5626d3f46b4b50 /jquery-ui-timepicker-addon.js
parent960b7750e119af68c3b74a7d7801f952e2747223 (diff)
downloadjQuery-Timepicker-Addon-1a2a371deb914b43cbed118b3b6c60535d5c2753.zip
jQuery-Timepicker-Addon-1a2a371deb914b43cbed118b3b6c60535d5c2753.tar.gz
jQuery-Timepicker-Addon-1a2a371deb914b43cbed118b3b6c60535d5c2753.tar.bz2
set function scope of this; pull request by janhartigan
Diffstat (limited to 'jquery-ui-timepicker-addon.js')
-rw-r--r--jquery-ui-timepicker-addon.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jquery-ui-timepicker-addon.js b/jquery-ui-timepicker-addon.js
index 628ae99..e43b8de 100644
--- a/jquery-ui-timepicker-addon.js
+++ b/jquery-ui-timepicker-addon.js
@@ -140,13 +140,13 @@ $.extend(Timepicker.prototype, {
// Update the time as well : this prevents the time from disappearing from the $input field.
tp_inst._updateDateTime(dp_inst);
if ($.isFunction(o.onChangeMonthYear))
- o.onChangeMonthYear(year, month, dp_inst, tp_inst);
+ o.onChangeMonthYear.call($input[0], year, month, dp_inst, tp_inst);
},
onClose: function(dateText, dp_inst) {
if (tp_inst.timeDefined === true && $input.val() != '')
tp_inst._updateDateTime(dp_inst);
if ($.isFunction(o.onClose))
- o.onClose(dateText, dp_inst, tp_inst);
+ o.onClose.call($input[0], dateText, dp_inst, tp_inst);
},
timepicker: tp_inst // add timepicker as a property of datepicker: $.datepicker._get(dp_inst, 'timepicker');
});