mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
datepicker: getDate function now gets date whether or not datepicker is opened (fixes #2832)
This commit is contained in:
parent
6f2849fd38
commit
6b518a257f
@ -14,7 +14,7 @@
|
||||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(function(){
|
||||
$('#testing').datepicker({ yearRange: '-80:+0' });
|
||||
$('#testing').datepicker();
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
@ -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);
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user