summaryrefslogtreecommitdiffstats
path: root/src/jquery-ui-timepicker-addon.js
diff options
context:
space:
mode:
authorspmorganjr <spmorganjr@gmail.com>2014-01-25 19:39:18 -0800
committerspmorganjr <spmorganjr@gmail.com>2014-01-25 19:39:18 -0800
commit80cf4dc4620f2f93ad1955f66738763a4823fd77 (patch)
treefad0132a5d59a7ba248beead905e3572eb53acc3 /src/jquery-ui-timepicker-addon.js
parent761d0f354e92fc68677ae33aa7021102f3e9aeba (diff)
downloadjQuery-Timepicker-Addon-80cf4dc4620f2f93ad1955f66738763a4823fd77.zip
jQuery-Timepicker-Addon-80cf4dc4620f2f93ad1955f66738763a4823fd77.tar.gz
jQuery-Timepicker-Addon-80cf4dc4620f2f93ad1955f66738763a4823fd77.tar.bz2
There's an override to the _selectDate() method that prevents the calendar from closing after selecting a new date. If the timepicker is not enabled then there's no reason to execute this code, it should instead fire the base _selectDate() method.
Diffstat (limited to 'src/jquery-ui-timepicker-addon.js')
-rw-r--r--src/jquery-ui-timepicker-addon.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jquery-ui-timepicker-addon.js b/src/jquery-ui-timepicker-addon.js
index 71ec2cd..fe1e9e1 100644
--- a/src/jquery-ui-timepicker-addon.js
+++ b/src/jquery-ui-timepicker-addon.js
@@ -1348,7 +1348,7 @@
var inst = this._getInst($(id)[0]),
tp_inst = this._get(inst, 'timepicker');
- if (tp_inst) {
+ if (tp_inst && inst.settings.showTimepicker) {
tp_inst._limitMinMaxDateTime(inst, true);
inst.inline = inst.stay_open = true;
//This way the onSelect handler called from calendarpicker get the full dateTime