diff options
-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'); |