Changeset 1055

Show
Ignore:
Timestamp:
12/08/08 02:27:39 (15 months ago)
Author:
kbwood.au
Message:

Fixed 3642. firstDay displays day names incorrectly.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ui/ui.datepicker.js

    r977 r1055  
    14311431                        currentText + '</a></div>' : '') + (isRTL ? prev : next) + '</div>' + 
    14321432                        (prompt ? '<div class="' + this._promptClass + '"><span>' + prompt + '</span></div>' : ''); 
    1433                 var firstDay = this._get(inst, 'firstDay'); 
     1433                var firstDay = parseInt(this._get(inst, 'firstDay')); 
     1434                firstDay = (isNaN(firstDay) ? 0 : firstDay); 
    14341435                var changeFirstDay = this._get(inst, 'changeFirstDay'); 
    14351436                var dayNames = this._get(inst, 'dayNames');