From caee13dba2f13bd515e1a79e71594fafe657d18b Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 23 Jun 2009 19:31:07 +0000 Subject: [PATCH] Forgot the JS from previous commit. --- www/extras/yui-webgui/build/datepicker/datepicker.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www/extras/yui-webgui/build/datepicker/datepicker.js b/www/extras/yui-webgui/build/datepicker/datepicker.js index 607e807a3..be2411df2 100644 --- a/www/extras/yui-webgui/build/datepicker/datepicker.js +++ b/www/extras/yui-webgui/build/datepicker/datepicker.js @@ -22,8 +22,9 @@ YAHOO.WebGUI.Form.DatePicker = { MDY_DAY_POSITION: 3, NAVIGATOR: true }; - if (window.webguiFirstDayOfWeek) { - config.START_WEEKDAY = window.webguiFirstDayOfWeek; + var firstDayOfWeek = getWebguiProperty('firstDayOfWeek'); + if (firstDayOfWeek) { + config.START_WEEKDAY = firstDayOfWeek; } this.calendar = new YAHOO.widget.Calendar(null, cal, config); this.calendar.selectEvent.subscribe(this.handleSelect, this, true);