From 58871808ac1e6d5a667c0d3d6fa022d930d371f2 Mon Sep 17 00:00:00 2001 From: Keith Wood Date: Mon, 8 Dec 2008 10:27:39 +0000 Subject: Fixed 3642. firstDay displays day names incorrectly. --- ui/ui.datepicker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 + '' : '') + (isRTL ? prev : next) + '' + (prompt ? '
' + prompt + '
' : ''); - 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'); -- cgit v1.2.3