Changeset 1152

Show
Ignore:
Timestamp:
12/13/06 02:08:57
Author:
johnsa
Message:

personal client: simplify some of the javascript

Files:

Legend:

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

    r1151 r1152  
    22602260                      <div id="monthRecurFields1"> 
    22612261                        on 
    2262                         <select name="bymonthposPos1" width="7em" onchange="revealNextRecurField(this,'monthRecurFields2')"> 
     2262                        <select name="bymonthposPos1" width="7em" onchange="changeClass('monthRecurFields2','shown')"> 
    22632263                          <xsl:call-template name="recurrenceDayPosOptions"/> 
    22642264                        </select> 
     
    22902290                      <div id="yearRecurFields1"> 
    22912291                        on 
    2292                         <select name="byyearposPos1" width="7em" onchange="revealNextRecurField(this,'yearRecurFields2')"> 
     2292                        <select name="byyearposPos1" width="7em" onchange="changeClass('yearRecurFields2','shown')"> 
    22932293                          <xsl:call-template name="recurrenceDayPosOptions"/> 
    22942294                        </select> 
     
    26032603        <xsl:attribute name="name">by<xsl:value-of select="$name"/>posPos<xsl:value-of select="$current"/></xsl:attribute> 
    26042604        <xsl:if test="$current != $total"> 
    2605           <xsl:attribute name="onchange">revealNextRecurField(this,'<xsl:value-of select="$name"/>RecurFields<xsl:value-of select="$current+1"/>')</xsl:attribute> 
     2605          <xsl:attribute name="onchange">changeClass('<xsl:value-of select="$name"/>RecurFields<xsl:value-of select="$current+1"/>','shown')</xsl:attribute> 
    26062606        </xsl:if> 
    26072607        <xsl:call-template name="recurrenceDayPosOptions"/> 
  • trunk/deployment/webuser/webapp/resources/demoskins/resources/includes.js

    r1151 r1152  
    152152      } 
    153153    } 
    154   } 
    155 } 
    156 // reveal the next recurrence field set if the selected value isn't 0 ('none') 
    157 function revealNextRecurField(obj,id) { 
    158   if (obj.value != '0') { 
    159     changeClass(id,'shown'); 
    160154  } 
    161155}