diff options
author | Trent Richardson <trentdrichardson@gmail.com> | 2010-11-18 14:05:06 -0500 |
---|---|---|
committer | Trent Richardson <trentdrichardson@gmail.com> | 2010-11-18 14:05:06 -0500 |
commit | 294b8cf850cf674b6db6d6c1303d4fda9f7328c4 (patch) | |
tree | 34f1a60f28162b69e23691d5afec55e7c4e4e359 /jquery-ui-timepicker-addon.js | |
parent | ba3d8a86bd3dad2e1e2bc26dfceca175d374568d (diff) | |
download | jQuery-Timepicker-Addon-294b8cf850cf674b6db6d6c1303d4fda9f7328c4.zip jQuery-Timepicker-Addon-294b8cf850cf674b6db6d6c1303d4fda9f7328c4.tar.gz jQuery-Timepicker-Addon-294b8cf850cf674b6db6d6c1303d4fda9f7328c4.tar.bz2 |
fixed getDate to return date
Diffstat (limited to 'jquery-ui-timepicker-addon.js')
-rw-r--r-- | jquery-ui-timepicker-addon.js | 4 |
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() { |