Changeset 1424

Show
Ignore:
Timestamp:
06/15/07 08:47:13
Author:
johnsa
Message:

user client: finish up rudimentary pull-down menus in the calendar grid.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.css

    r1422 r1424  
    319319#bedework .bwActionIconsInGrid { 
    320320  position: absolute; 
     321  z-index: 1; 
    321322  white-space: nowrap; 
    322323  border: 1px solid #333; 
     
    327328} 
    328329#bedework .bwActionIconsInGrid { 
    329   margin-top: 10px; 
     330  /*margin-top: 10px;*/ 
    330331  margin-left: -100px; 
    331332} 
  • trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r1422 r1424  
    717717       <tr> 
    718718         <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')"/> 
    720720           <xsl:call-template name="actionIcons"> 
    721721             <xsl:with-param name="actionIconsId">bwActionIcons-0</xsl:with-param>  
     
    840840    <xsl:param name="startDate"/> 
    841841    <xsl:param name="actionIconsId"/> 
     842    <br/> 
    842843    <div id="{$actionIconsId}" class="invisible"> 
    843844       <a href="{$initEvent}&amp;entityType=event&amp;startdate={$startDate}" title="add event" onclick="javascript:changeClass('{$actionIconsId}','invisible')"> 
     
    11181119              <xsl:variable name="actionIconsId">bwActionIcons-<xsl:value-of select="value"/></xsl:variable> 
    11191120              <div class="gridAdd"> 
    1120                 <a href="javascript:toggleVisibility('{$actionIconsId}','bwActionIconsInGrid')" title="add..."> 
     1121                <a href="javascript:toggleActionIcons('{$actionIconsId}','bwActionIconsInGrid')" title="add..."> 
    11211122                  <img src="{$resourcesRoot}/resources/addEvent-forGrid-icon.gif" width="10" height="10" border="0" alt="add..."/> 
    11221123                </a> 
     
    11671168                  <xsl:variable name="actionIconsId">bwActionIcons-<xsl:value-of select="value"/></xsl:variable> 
    11681169                  <div class="gridAdd"> 
    1169                     <a href="javascript:toggleVisibility('{$actionIconsId}','bwActionIconsInGrid')" title="add..."> 
     1170                    <a href="javascript:toggleActionIcons('{$actionIconsId}','bwActionIconsInGrid')" title="add..."> 
    11701171                      <img src="{$resourcesRoot}/resources/addEvent-forGrid-icon.gif" width="10" height="10" border="0" alt="add..."/> 
    11711172                    </a> 
  • trunk/deployment/webuser/webapp/resources/demoskins/resources/bedework.js

    r1422 r1424  
    4242    changeClass(id,'invisible'); 
    4343  } 
     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 
     51function 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); 
    4463} 
    4564function setTab(listId,listIndex) {