Skip to content

Commit 294b8cf

Browse files
fixed getDate to return date
1 parent ba3d8a8 commit 294b8cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,9 @@ $.fn.extend({
479479
tmp_args = arguments;
480480

481481
if (typeof(o) == 'string') {
482-
if (o == 'setDate') return this.each(function() {
482+
if (o == 'getDate')
483+
return $(this).datepicker(o);
484+
else if (o == 'setDate') return this.each(function() {
483485
$(this).datepicker(o, tmp_args[1]);
484486
});
485487
else if(o == 'option' && typeof(tmp_args[1]) == 'string') return this.each(function() {

0 commit comments

Comments
 (0)