summaryrefslogtreecommitdiffstats
path: root/dist/jquery-ui-timepicker-addon.js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/jquery-ui-timepicker-addon.js')
-rw-r--r--dist/jquery-ui-timepicker-addon.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/dist/jquery-ui-timepicker-addon.js b/dist/jquery-ui-timepicker-addon.js
index 714d957..bc3d04f 100644
--- a/dist/jquery-ui-timepicker-addon.js
+++ b/dist/jquery-ui-timepicker-addon.js
@@ -2077,6 +2077,13 @@
end: {} // options for end picker
}, options);
+ // for the mean time this fixes an issue with calling getDate with timepicker()
+ var timeOnly = false;
+ if(method === 'timepicker'){
+ timeOnly = true;
+ method = 'datetimepicker';
+ }
+
function checkDates(changed, other) {
var startdt = startTime[method]('getDate'),
enddt = endTime[method]('getDate'),
@@ -2120,6 +2127,7 @@
}
$.fn[method].call(startTime, $.extend({
+ timeOnly: timeOnly,
onClose: function (dateText, inst) {
checkDates($(this), endTime);
},
@@ -2128,6 +2136,7 @@
}
}, options, options.start));
$.fn[method].call(endTime, $.extend({
+ timeOnly: timeOnly,
onClose: function (dateText, inst) {
checkDates($(this), startTime);
},