datepicker: getDate function now gets date whether or not datepicker is opened (fixes #2832)

This commit is contained in:
Marc Grabanski 2008-06-01 20:30:55 +00:00
parent 6f2849fd38
commit 6b518a257f
2 changed files with 4 additions and 1 deletions

View File

@ -14,7 +14,7 @@
<script type="text/javascript" charset="utf-8">
$(function(){
$('#testing').datepicker({ yearRange: '-80:+0' });
$('#testing').datepicker();
});
</script>
</body>

View File

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