summaryrefslogtreecommitdiffstats
path: root/src/jquery-ui-timepicker-addon.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/jquery-ui-timepicker-addon.js')
-rw-r--r--src/jquery-ui-timepicker-addon.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/jquery-ui-timepicker-addon.js b/src/jquery-ui-timepicker-addon.js
index 25f9c74..5c7a186 100644
--- a/src/jquery-ui-timepicker-addon.js
+++ b/src/jquery-ui-timepicker-addon.js
@@ -2083,6 +2083,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'),
@@ -2126,6 +2133,7 @@
}
$.fn[method].call(startTime, $.extend({
+ timeOnly: timeOnly,
onClose: function (dateText, inst) {
checkDates($(this), endTime);
},
@@ -2134,6 +2142,7 @@
}
}, options, options.start));
$.fn[method].call(endTime, $.extend({
+ timeOnly: timeOnly,
onClose: function (dateText, inst) {
checkDates($(this), startTime);
},