diff options
author | Marc Grabanski <m@marcgrabanski.com> | 2008-06-01 20:30:55 +0000 |
---|---|---|
committer | Marc Grabanski <m@marcgrabanski.com> | 2008-06-01 20:30:55 +0000 |
commit | 6b518a257fb172936a7c63b965598f3afe3aba9f (patch) | |
tree | 68247c4c1d7caeffef7a81031067d251640819a1 | |
parent | 6f2849fd382868d1c29bca9d4624d76756049916 (diff) | |
download | jquery-ui-6b518a257fb172936a7c63b965598f3afe3aba9f.tar.gz jquery-ui-6b518a257fb172936a7c63b965598f3afe3aba9f.zip |
datepicker: getDate function now gets date whether or not datepicker is opened (fixes #2832)
-rw-r--r-- | ui/demos/functional/datepicker/debug.html | 2 | ||||
-rw-r--r-- | ui/source/ui.datepicker.js | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/ui/demos/functional/datepicker/debug.html b/ui/demos/functional/datepicker/debug.html index a73c5dc62..91dab145b 100644 --- a/ui/demos/functional/datepicker/debug.html +++ b/ui/demos/functional/datepicker/debug.html @@ -14,7 +14,7 @@ <script type="text/javascript" charset="utf-8"> $(function(){ - $('#testing').datepicker({ yearRange: '-80:+0' }); + $('#testing').datepicker(); }); </script> </body> diff --git a/ui/source/ui.datepicker.js b/ui/source/ui.datepicker.js index 62199f7bb..2715c38be 100644 --- a/ui/source/ui.datepicker.js +++ b/ui/source/ui.datepicker.js @@ -254,6 +254,9 @@ $.extend(Datepicker.prototype, { Date[2] - the current dates for a range */
_getDateDatepicker: function(target) {
var inst = this._getInst(target._calId);
+ if (inst) {
+ inst._setDateFromField($(target));
+ }
return (inst ? inst._getDate() : null);
},
|