Skip to content

Commit

Permalink
Fixed 3642. firstDay displays day names incorrectly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith Wood committed Dec 8, 2008
1 parent b3f1dcf commit 5887180
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/ui.datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 5887180

Please sign in to comment.