r1055 - trunk/ui
r1055 - trunk/ui
Author: kbwood.au
Date: Mon Dec 8 02:27:39 2008
New Revision: 1055
Modified:
trunk/ui/ui.datepicker.js
Log:
Fixed 3642. firstDay displays day names incorrectly.
Modified: trunk/ui/ui.datepicker.js
==============================================================================
--- trunk/ui/ui.datepicker.js (original)
+++ trunk/ui/ui.datepicker.js Mon Dec 8 02:27:39 2008
@@ -1430,7 +1430,8 @@
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');