aboutsummaryrefslogtreecommitdiffstats
path: root/ui/source/ui.datepicker.js
diff options
context:
space:
mode:
authorMarc Grabanski <m@marcgrabanski.com>2008-06-01 20:30:55 +0000
committerMarc Grabanski <m@marcgrabanski.com>2008-06-01 20:30:55 +0000
commit6b518a257fb172936a7c63b965598f3afe3aba9f (patch)
tree68247c4c1d7caeffef7a81031067d251640819a1 /ui/source/ui.datepicker.js
parent6f2849fd382868d1c29bca9d4624d76756049916 (diff)
downloadjquery-ui-6b518a257fb172936a7c63b965598f3afe3aba9f.tar.gz
jquery-ui-6b518a257fb172936a7c63b965598f3afe3aba9f.zip
datepicker: getDate function now gets date whether or not datepicker is opened (fixes #2832)
Diffstat (limited to 'ui/source/ui.datepicker.js')
-rw-r--r--ui/source/ui.datepicker.js3
1 files changed, 3 insertions, 0 deletions
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);
},