mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
datepicker: getDate function now gets date whether or not datepicker is opened (fixes #2832)
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user