Changeset 1424
- Timestamp:
- 06/15/07 08:47:13
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.css
r1422 r1424 319 319 #bedework .bwActionIconsInGrid { 320 320 position: absolute; 321 z-index: 1; 321 322 white-space: nowrap; 322 323 border: 1px solid #333; … … 327 328 } 328 329 #bedework .bwActionIconsInGrid { 329 margin-top: 10px;330 /*margin-top: 10px;*/ 330 331 margin-left: -100px; 331 332 } trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r1422 r1424 717 717 <tr> 718 718 <td class="leftCell"> 719 <input type="button" value="add..." onmouseover=" changeClass('bwActionIcons-0','bwActionIcons')" onclick="toggleVisibility('bwActionIcons-0','bwActionIcons')"/>719 <input type="button" value="add..." onmouseover="toggleActionIcons('bwActionIcons-0','bwActionIcons')" onclick="toggleActionIcons('bwActionIcons-0','bwActionIcons')"/> 720 720 <xsl:call-template name="actionIcons"> 721 721 <xsl:with-param name="actionIconsId">bwActionIcons-0</xsl:with-param> … … 840 840 <xsl:param name="startDate"/> 841 841 <xsl:param name="actionIconsId"/> 842 <br/> 842 843 <div id="{$actionIconsId}" class="invisible"> 843 844 <a href="{$initEvent}&entityType=event&startdate={$startDate}" title="add event" onclick="javascript:changeClass('{$actionIconsId}','invisible')"> … … 1118 1119 <xsl:variable name="actionIconsId">bwActionIcons-<xsl:value-of select="value"/></xsl:variable> 1119 1120 <div class="gridAdd"> 1120 <a href="javascript:toggle Visibility('{$actionIconsId}','bwActionIconsInGrid')" title="add...">1121 <a href="javascript:toggleActionIcons('{$actionIconsId}','bwActionIconsInGrid')" title="add..."> 1121 1122 <img src="{$resourcesRoot}/resources/addEvent-forGrid-icon.gif" width="10" height="10" border="0" alt="add..."/> 1122 1123 </a> … … 1167 1168 <xsl:variable name="actionIconsId">bwActionIcons-<xsl:value-of select="value"/></xsl:variable> 1168 1169 <div class="gridAdd"> 1169 <a href="javascript:toggle Visibility('{$actionIconsId}','bwActionIconsInGrid')" title="add...">1170 <a href="javascript:toggleActionIcons('{$actionIconsId}','bwActionIconsInGrid')" title="add..."> 1170 1171 <img src="{$resourcesRoot}/resources/addEvent-forGrid-icon.gif" width="10" height="10" border="0" alt="add..."/> 1171 1172 </a> trunk/deployment/webuser/webapp/resources/demoskins/resources/bedework.js
r1422 r1424 42 42 changeClass(id,'invisible'); 43 43 } 44 } 45 // Toggle action icons box visibility at the selected position and 46 // set any open action icon boxes to invisible. 47 // Action icon boxes are used in the calendar grid - their ids are 48 // built from a prefix plus the day number; the box identified by zero is the topmost box 49 // associated with the "add..." button. Id's will therefore be prefix-0 through 50 // prefix-31 51 function toggleActionIcons(id,cl) { 52 var dash = id.indexOf("-"); 53 var boxNum = id.substring(dash+1); 54 var prefix = id.substring(0,dash); 55 var currentBox; 56 for (i = 0; i < 32; i++) { 57 currentBox = prefix + "-" + i; 58 if (i != boxNum && document.getElementById(currentBox)) { 59 changeClass(currentBox,"invisible"); 60 } 61 } 62 toggleVisibility(id,cl); 44 63 } 45 64 function setTab(listId,listIndex) {
