diff options
-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);
},
|