Skip to content
Permalink
Browse files

datepicker: getDate function now gets date whether or not datepicker …

…is opened (fixes #2832)
  • Loading branch information
1Marc committed Jun 1, 2008
1 parent 6f2849f commit 6b518a257fb172936a7c63b965598f3afe3aba9f
Showing with 4 additions and 1 deletion.
  1. +1 −1 ui/demos/functional/datepicker/debug.html
  2. +3 −0 ui/source/ui.datepicker.js
@@ -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);
},

0 comments on commit 6b518a2

Please sign in to comment.
You can’t perform that action at this time.