From 6b518a257fb172936a7c63b965598f3afe3aba9f Mon Sep 17 00:00:00 2001 From: Marc Grabanski Date: Sun, 1 Jun 2008 20:30:55 +0000 Subject: datepicker: getDate function now gets date whether or not datepicker is opened (fixes #2832) --- ui/demos/functional/datepicker/debug.html | 2 +- ui/source/ui.datepicker.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'ui') 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 @@ 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); }, -- cgit v1.2.3