Index: trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl =================================================================== --- trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl (revision 391) +++ trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl (revision 393) @@ -1332,5 +1332,5 @@ @@ -1380,5 +1380,5 @@ @@ -1716,5 +1716,5 @@ @@ -1764,5 +1764,5 @@ Index: trunk/calendar3/deployment/webuser/webapp/resources/demoskins/resources/dynCalendarWidget.js =================================================================== --- trunk/calendar3/deployment/webuser/webapp/resources/demoskins/resources/dynCalendarWidget.js (revision 289) +++ trunk/calendar3/deployment/webuser/webapp/resources/demoskins/resources/dynCalendarWidget.js (revision 393) @@ -24,23 +24,32 @@ * @access public * @param string objName Name of the object that you create +* @param int yr Year value (e.g. 2006) +* @param int mth Month value (0-11) +* @param int dy Day (date) value (1-31) * @param string callbackFunc Name of the callback function * @param string OPTIONAL Optional layer name * @param string OPTIONAL Optional images path */ - function dynCalendar(objName, callbackFunc) - { - /** - * Properties - */ + function dynCalendar(objName, yr, mth, dy, callbackFunc) + { + /** + * Properties + */ // Todays date - this.today = new Date(); - this.date = this.today.getDate(); - this.month = this.today.getMonth(); - this.year = this.today.getFullYear(); + // this.today = new Date(); + // this.date = this.today.getDate(); + // this.month = this.today.getMonth(); + // this.year = this.today.getFullYear(); + + // In Bedework we will always pass the start date explicitly to the + // calendar widget. + this.year = yr; //this.today.getFullYear(); + this.month = mth; //this.today.getMonth(); + this.date = dy; //this.today.getDate(); this.objName = objName; this.callbackFunc = callbackFunc; - this.imagesPath = arguments[2] ? arguments[2] : '/caladminrsrc/resources/'; - this.layerID = arguments[3] ? arguments[3] : 'dynCalendar_layer_' + dynCalendar_layers.length; + this.imagesPath = arguments[5] ? arguments[5] : '/caladminrsrc/resources/'; + this.layerID = arguments[6] ? arguments[6] : 'dynCalendar_layer_' + dynCalendar_layers.length; this.offsetX = 5; Index: trunk/calendar3/deployment/webuser/webapp/resources/demoskins/resources/includes.js =================================================================== --- trunk/calendar3/deployment/webuser/webapp/resources/demoskins/resources/includes.js (revision 317) +++ trunk/calendar3/deployment/webuser/webapp/resources/demoskins/resources/includes.js (revision 393) @@ -62,12 +62,7 @@ date = '0' + date; } - today = new Date(); - if (year < today.getFullYear()) { - alert("You may not create an event in a previous year."); - } else { - document.eventForm['eventStartDate.month'].value = month; - document.eventForm['eventStartDate.day'].value = date; - document.eventForm['eventStartDate.year'].value = year; - } + document.eventForm['eventStartDate.month'].value = month; + document.eventForm['eventStartDate.day'].value = date; + document.eventForm['eventStartDate.year'].value = year; } function endDateCalWidgetCallback(date, month, year) { @@ -78,11 +73,7 @@ date = '0' + date; } - today = new Date(); - if (year < today.getFullYear()) { - alert("You may not create an event in a previous year."); - } else { - document.eventForm['eventEndDate.month'].value = month; - document.eventForm['eventEndDate.day'].value = date; - document.eventForm['eventEndDate.year'].value = year; - } + + document.eventForm['eventEndDate.month'].value = month; + document.eventForm['eventEndDate.day'].value = date; + document.eventForm['eventEndDate.year'].value = year; }