Changeset 450
- Timestamp:
- 05/04/06 17:29:15
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r449 r450 241 241 /bedework/page='editEvent' or 242 242 /bedework/page='selectCalForEvent' or 243 /bedework/page='upload'"> 243 /bedework/page='upload' or 244 /bedework/page='modPrefs'"> 244 245 <script type="text/javascript" src="{$resourcesRoot}/resources/includes.js"></script> 245 246 </xsl:if> 246 247 <xsl:if test="/bedework/page='addEvent' or 247 /bedework/page='editEvent' or 248 /bedework/page='modPrefs'"> 248 /bedework/page='editEvent'"> 249 249 <script type="text/javascript" src="{$resourcesRoot}/resources/bwClock.js"></script> 250 250 <link rel="stylesheet" href="{$resourcesRoot}/resources/bwClock.css"/> … … 1335 1335 </xsl:choose> 1336 1336 </span> 1337 <a href="javascript:launch SimpleWindow('{$event-selectCalForEvent}')" class="small">[change]</a>1337 <a href="javascript:launchCalSelectWindow('{$event-selectCalForEvent}')" class="small">[change]</a> 1338 1338 </td> 1339 1339 </tr> … … 1724 1724 </xsl:choose> 1725 1725 </span> 1726 <a href="javascript:launch SimpleWindow('{$event-selectCalForEvent}')" class="small">[change]</a>1726 <a href="javascript:launchCalSelectWindow('{$event-selectCalForEvent}')" class="small">[change]</a> 1727 1727 </td> 1728 1728 </tr> … … 2045 2045 2046 2046 <xsl:template match="event" mode="addEventRef"> 2047 <!-- The name "eventForm" is referenced by several javascript functions. Do not 2048 change it without modifying includes.js --> 2047 2049 <form name="eventForm" method="post" action="{$event-addEventRefComplete}" id="standardForm" enctype="multipart/form-data"> 2048 2050 <xsl:variable name="subscriptionId" select="subscription/id"/> … … 2076 2078 <em>default calendar</em> 2077 2079 </span> 2078 <a href="javascript:launch SimpleWindow('{$event-selectCalForEvent}')" class="small">[change]</a> (does not yet work)2080 <a href="javascript:launchCalSelectWindow('{$event-selectCalForEvent}')" class="small">[change]</a> (does not yet work) 2079 2081 </td> 2080 2082 </tr> … … 3184 3186 <!--==== UPLOAD ====--> 3185 3187 <xsl:template name="upload"> 3188 <!-- The name "eventForm" is referenced by several javascript functions. Do not 3189 change it without modifying includes.js --> 3186 3190 <form name="eventForm" method="post" action="{$upload}" id="standardForm" enctype="multipart/form-data"> 3187 3191 <h2>Upload iCAL File</h2> … … 3204 3208 <em>default calendar</em> 3205 3209 </span> 3206 <a href="javascript:launch SimpleWindow('{$event-selectCalForEvent}')" class="small">[change]</a>3210 <a href="javascript:launchCalSelectWindow('{$event-selectCalForEvent}')" class="small">[change]</a> 3207 3211 </td> 3208 3212 </tr> … … 3384 3388 <xsl:template match="prefs"> 3385 3389 <h2>Manage Preferences</h2> 3386 <form name="userPrefsForm" method="post" action="{$prefs-update}"> 3390 <!-- The name "eventForm" is referenced by several javascript functions. Do not 3391 change it without modifying includes.js --> 3392 <form name="eventForm" method="post" action="{$prefs-update}"> 3387 3393 <table class="common"> 3388 3394 <tr><td colspan="2" class="fill">User settings:</td></tr> … … 3413 3419 </td> 3414 3420 <td> 3415 <xsl:variable name=" defaultCalendar" select="defaultCalendar"/>3416 < select name="defaultCalendar">3417 <xsl:for-each select="/bedework/myCalendars/calendars//calendar[currentAccess/current-user-privilege-set/privilege/write-content and calendarCollection = 'true']">3418 <xsl:variable name="calPath" select="path"/>3419 <xsl:choose>3420 <xsl:when test="path = $defaultCalendar">3421 <option value="{$calPath}" selected="selected"><xsl:value-of select="path"/></option>3422 </xsl:when>3423 <xsl:otherwise>3424 <option value="{$calPath}"><xsl:value-of select="path"/></option>3425 </xsl:otherwise>3426 </xsl:choose>3427 </xsl:for-each>3428 < /select>3421 <xsl:variable name="calPath" select="defaultCalendar"/> 3422 <input type="hidden" name="calPath" value="{$calPath}"/> 3423 <xsl:variable name="userPath">user/<xsl:value-of select="/bedework/userid"/>/</xsl:variable> 3424 <span id="bwEventCalDisplay"> 3425 <xsl:choose> 3426 <xsl:when test="contains(defaultCalendar,$userPath)"> 3427 <xsl:value-of select="substring-after(defaultCalendar,$userPath)"/> 3428 </xsl:when> 3429 <xsl:otherwise> 3430 <xsl:value-of select="defaultCalendar"/> 3431 </xsl:otherwise> 3432 </xsl:choose> 3433 </span> 3434 <a href="javascript:launchCalSelectWindow('{$event-selectCalForEvent}')" class="small">[change]</a> 3429 3435 </td> 3430 3436 </tr> trunk/calendar3/deployment/webuser/webapp/resources/demoskins/resources/dynCalendarWidget.js
r393 r450 7 7 * 8 8 * 9 * Modifications for inclusion in Bedework calendar system 10 * by Arlen Johnson 2006 9 * Modifications for inclusion in Bedework calendar system 10 * by Arlen Johnson 2006 11 11 */ 12 12 … … 41 41 // this.month = this.today.getMonth(); 42 42 // this.year = this.today.getFullYear(); 43 44 // In Bedework we will always pass the start date explicitly to the 43 44 // In Bedework we will always pass the start date explicitly to the 45 45 // calendar widget. 46 46 this.year = yr; //this.today.getFullYear(); … … 116 116 var nextMonth, nextYear, prevImgHTML, prevLinkHTML, nextImgHTML, nextLinkHTML; 117 117 var monthComboOptions, monthCombo, yearComboOptions, yearCombo, html; 118 118 119 119 this.currentMonth = month = arguments[0] != null ? arguments[0] : this.currentMonth; 120 120 this.currentYear = year = arguments[1] != null ? arguments[1] : this.currentYear; … … 159 159 previousYear--; 160 160 } 161 161 162 162 nextYear = thisMonth.getFullYear(); 163 163 nextMonth = thisMonth.getMonth() + 1; … … 187 187 monthCombo = monthnames[thisMonth.getMonth()]; 188 188 } 189 189 190 190 /** 191 191 * Build year combo … … 276 276 this.offsetY = Yoffset; 277 277 } 278 278 279 279 /** 280 280 * Sets the images path … … 370 370 { 371 371 this._getLayer().style.visibility = 'hidden'; 372 372 373 373 // for Bedework event editing; reveal time fields when cal widget is hidden 374 374 changeClass('calWidgetStartTimeHider','shown'); … … 384 384 { 385 385 this._getLayer().style.visibility = 'visible'; 386 386 387 387 // for Bedework event editing; hide time fields when cal widget is visible 388 388 // to avoid IE rendering oddities (IE always displays the "windowed" layer … … 459 459 arguments[0] = null; 460 460 } 461 461 462 462 dynCalendar_oldOnmousemove(); 463 463 } … … 477 477 } 478 478 } 479 479 480 480 dynCalendar_oldOnclick(arguments[0] ? arguments[0] : null); 481 481 } trunk/calendar3/webclient/war/docs/prefs/modPrefs.jsp
r447 r450 13 13 <email><bean:write name="userPrefs" property="email"/></email> 14 14 <!-- default calendar into which events will be placed --> 15 <defaultCalendar><bean:write name="userPrefs" property="defaultCalendar"/></defaultCalendar> 15 <defaultCalendar> 16 <path><bean:write name="userPrefs" property="defaultCalendar.path"/></path> 17 <subName></subName> 18 </defaultCalendar> 16 19 <!-- name of default view (collection of subscriptions) that will appear upon login --> 17 20 <preferredView><bean:write name="userPrefs" property="preferredView"/></preferredView>
