DatePicker.js can now use different first days of the week

This commit is contained in:
Kaleb Murphy 2008-09-19 21:51:47 +00:00
parent 0095452ebc
commit 195bdb6a5e
2 changed files with 2 additions and 1 deletions

View file

@ -22,7 +22,7 @@ YAHOO.WebGUI.Form.DatePicker = {
MDY_DAY_POSITION: 3
};
if (window.webguiFirstDayOfWeek) {
config.START_WEEKDAY = webguiFirstDayofWeek;
config.START_WEEKDAY = window.webguiFirstDayOfWeek;
}
this.calendar = new YAHOO.widget.Calendar(null, cal, config);
this.calendar.selectEvent.subscribe(this.handleSelect, this, true);