aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.datepicker.js
diff options
context:
space:
mode:
authorKeith Wood <kbwood.au@gmail.com>2008-09-07 08:38:09 +0000
committerKeith Wood <kbwood.au@gmail.com>2008-09-07 08:38:09 +0000
commit41811fb8c38ec7b182f530f3f38f197db9bb25c4 (patch)
tree67532c25e3f34b44be784fcc0e88c013c47eb186 /ui/ui.datepicker.js
parent0db0ffe5804e7abc7106ad9c527620c0c9309bbb (diff)
downloadjquery-ui-41811fb8c38ec7b182f530f3f38f197db9bb25c4.tar.gz
jquery-ui-41811fb8c38ec7b182f530f3f38f197db9bb25c4.zip
Fixed 3183 onSelect and onClose have inconsistent signatures
Diffstat (limited to 'ui/ui.datepicker.js')
-rw-r--r--ui/ui.datepicker.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/ui.datepicker.js b/ui/ui.datepicker.js
index 17b483281..3aa138e0f 100644
--- a/ui/ui.datepicker.js
+++ b/ui/ui.datepicker.js
@@ -665,7 +665,7 @@ $.extend(Datepicker.prototype, {
var onClose = this._get(inst, 'onClose');
if (onClose)
onClose.apply((inst.input ? inst.input[0] : null),
- [this._getDate(inst), inst]); // trigger custom callback
+ [(inst.input ? inst.input.val() : ''), inst]); // trigger custom callback
this._datepickerShowing = false;
this._lastInput = null;
inst.settings.prompt = null;
@@ -1577,7 +1577,7 @@ $.extend(Datepicker.prototype, {
var onChange = this._get(inst, 'onChangeMonthYear');
if (onChange)
onChange.apply((inst.input ? inst.input[0] : null),
- [new Date(inst.selectedYear, inst.selectedMonth, 1), inst]);
+ [inst.selectedYear, inst.selectedMonth + 1, inst]);
},
/* Determine the number of months to show. */