diff options
author | Keith Wood <kbwood.au@gmail.com> | 2008-12-08 10:27:39 +0000 |
---|---|---|
committer | Keith Wood <kbwood.au@gmail.com> | 2008-12-08 10:27:39 +0000 |
commit | 58871808ac1e6d5a667c0d3d6fa022d930d371f2 (patch) | |
tree | ce862710b1ac42b29b040b720b984a56d5827256 /ui/ui.datepicker.js | |
parent | b3f1dcfadc6126515953263de25fa4363dfce92a (diff) | |
download | jquery-ui-58871808ac1e6d5a667c0d3d6fa022d930d371f2.tar.gz jquery-ui-58871808ac1e6d5a667c0d3d6fa022d930d371f2.zip |
Fixed 3642. firstDay displays day names incorrectly.
Diffstat (limited to 'ui/ui.datepicker.js')
-rw-r--r-- | ui/ui.datepicker.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/ui.datepicker.js b/ui/ui.datepicker.js index a2fe6d1c6..2774d6a18 100644 --- a/ui/ui.datepicker.js +++ b/ui/ui.datepicker.js @@ -1430,7 +1430,8 @@ $.extend(Datepicker.prototype, { this._addStatus(showStatus, inst.id, this._get(inst, 'currentStatus'), initStatus) + '>' + currentText + '</a></div>' : '') + (isRTL ? prev : next) + '</div>' + (prompt ? '<div class="' + this._promptClass + '"><span>' + prompt + '</span></div>' : ''); - var firstDay = this._get(inst, 'firstDay'); + var firstDay = parseInt(this._get(inst, 'firstDay')); + firstDay = (isNaN(firstDay) ? 0 : firstDay); var changeFirstDay = this._get(inst, 'changeFirstDay'); var dayNames = this._get(inst, 'dayNames'); var dayNamesShort = this._get(inst, 'dayNamesShort'); |