summaryrefslogtreecommitdiffstats
path: root/jquery-ui-timepicker-addon.js
diff options
context:
space:
mode:
Diffstat (limited to 'jquery-ui-timepicker-addon.js')
-rw-r--r--jquery-ui-timepicker-addon.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/jquery-ui-timepicker-addon.js b/jquery-ui-timepicker-addon.js
index 87e98a6..bba63b4 100644
--- a/jquery-ui-timepicker-addon.js
+++ b/jquery-ui-timepicker-addon.js
@@ -479,7 +479,9 @@ $.fn.extend({
tmp_args = arguments;
if (typeof(o) == 'string') {
- if (o == 'setDate') return this.each(function() {
+ if (o == 'getDate')
+ return $(this).datepicker(o);
+ else if (o == 'setDate') return this.each(function() {
$(this).datepicker(o, tmp_args[1]);
});
else if(o == 'option' && typeof(tmp_args[1]) == 'string') return this.each(function() {