Changeset 1471
- Timestamp:
- 07/13/07 09:05:42
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r1470 r1471 181 181 /bedework/page != 'attendeeReply'"> 182 182 <xsl:attribute name="onload">checkStatus(<xsl:value-of select="/bedework/inboxState/numActive"/>,<xsl:value-of select="/bedework/inboxState/changed"/>,'<xsl:value-of select="$showInbox"/>')</xsl:attribute> 183 </xsl:when> 184 </xsl:choose> 185 <xsl:choose> 186 <xsl:when test="/bedework/page = 'addEvent'"> 187 <xsl:attribute name="onload">focusElement('bwEventTitle');</xsl:attribute> 188 </xsl:when> 189 <xsl:when test="/bedework/page = 'attendees'"> 190 <xsl:attribute name="onload">focusElement('bwRaUri');</xsl:attribute> 191 </xsl:when> 192 <xsl:when test="/bedework/page = 'modLocation'"> 193 <xsl:attribute name="onload">focusElement('bwLocMainAddress');</xsl:attribute> 183 194 </xsl:when> 184 195 </xsl:choose> … … 390 401 <xsl:comment> 391 402 <![CDATA[ 403 function checkStatus(inboxCount,changed,url) { 392 404 // Check status of inbox and outbox and alert user appropriately. 393 405 // Just take care of inbox for now. 394 function checkStatus(inboxCount,changed,url) {395 406 if (inboxCount && changed) { 396 407 if (confirm("You have " + inboxCount + " pending meeting requests.\nGo to inbox?")) { … … 398 409 } 399 410 } 411 } 412 function focusElement(id) { 413 // focuses element by id 414 document.getElementById(id).focus(); 400 415 } 401 416 ]]> … … 2128 2143 <td class="fieldval"> 2129 2144 <xsl:variable name="title" select="form/title/input/@value"/> 2130 <input type="text" name="summary" size="80" value="{$title}" />2145 <input type="text" name="summary" size="80" value="{$title}" id="bwEventTitle"/> 2131 2146 </td> 2132 2147 </tr> … … 3469 3484 <div id="raContent"> 3470 3485 <div id="raFields"> 3471 <input name="uri" width="40" />3486 <input name="uri" width="40" id="bwRaUri"/> 3472 3487 <input type="submit" value="add" /> 3473 3488   … … 5383 5398 </td> 5384 5399 <td> 5385 <input size="60" name="locationAddress.value" type="text" />5400 <input size="60" name="locationAddress.value" type="text" id="bwLocMainAddress"/> 5386 5401 </td> 5387 5402 </tr> … … 5428 5443 </td> 5429 5444 <td align="left"> 5430 <input size="60" name="locationAddress.value" type="text" >5445 <input size="60" name="locationAddress.value" type="text" id="bwLocMainAddress"> 5431 5446 <xsl:attribute name="value"><xsl:value-of select="/bedework/currentLocation/address"/></xsl:attribute> 5432 5447 </input>
