Changeset 159

Show
Ignore:
Timestamp:
02/14/06 17:07:33
Author:
johnsa
Message:

fixes to debug admin client event edit javascript in IE; changed some css naming for clarity and corrected some IE stylistic problems.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/calendar3/deployment/resources/login/login.html

    r2 r159  
    5353        margin: 0em; 
    5454        padding: 0em; 
     55      } 
     56      form { 
     57        margin: 0; 
     58        padding: 0; 
    5559      } 
    5660      .styleButtons { 
  • trunk/calendar3/deployment/webadmin/webapp/resources/default/default/default.css

    r158 r159  
    243243  display: inline; 
    244244} 
    245 table.eventFormTable .hidden, 
     245table.eventFormTable .invisible, 
     246.invisible { 
     247  display: none; 
     248
    246249.hidden { 
    247   display: none
    248 } 
    249 table.eventFormTable .durationBox { 
     250  visibility: hidden
     251} 
     252table.eventFormTable div.durationBox { 
    250253  border: 1px solid #ccb; 
    251254  display: inline; 
    252255  margin: 4px; 
    253256  padding: 4px; 
    254 } 
    255 table.eventFormTable .durationBox input { 
    256   margin-left: 0.5em; 
    257257} 
    258258table.eventFormTable .durationSpacerText { 
  • trunk/calendar3/deployment/webadmin/webapp/resources/default/default/default.xsl

    r158 r159  
    132132          <script type="text/javascript" src="{$resourcesRoot}/resources/bwClock.js"></script> 
    133133          <link rel="stylesheet" href="{$resourcesRoot}/resources/bwClock.css"/> 
    134           <script type='text/javascript' src="{$resourcesRoot}/resources/autoComplete.js"></script> 
    135           <script type='text/javascript' src="{$resourcesRoot}/resources/ui.js"></script> 
     134          <!--<script type='text/javascript' src="{$resourcesRoot}/resources/autoComplete.js"></script> 
     135          <script type='text/javascript' src="{$resourcesRoot}/resources/ui.js"></script>--> 
    136136        </xsl:if> 
    137137        <link rel="icon" type="image/ico" href="{$resourcesRoot}/resources/bedework.ico" /> 
     
    471471            </select> 
    472472            <!-- description of calendar: will be implemented soon --> 
    473             <!-- 
    474             <div id="calendarDescriptionBox"> 
     473            <!--<div id="calendarDescriptionBox"> 
    475474              Description: <span id="calendarDescription">please select a calendar.</span> 
    476475              <a href="" target="calDescriptions">all calendar descriptions</a> 
     
    489488            <xsl:variable name="timeFieldsClass"> 
    490489              <xsl:choose> 
    491                 <xsl:when test="/bedeworkadmin/formElements/form/allDay/input/@checked='checked'">hidden</xsl:when> 
     490                <xsl:when test="/bedeworkadmin/formElements/form/allDay/input/@checked='checked'">invisible</xsl:when> 
    492491                <xsl:otherwise>timeFields</xsl:otherwise> 
    493492              </xsl:choose> 
     
    495494            <xsl:choose> 
    496495              <xsl:when test="/bedeworkadmin/formElements/form/allDay/input/@checked='checked'"> 
    497                 <input type="checkbox" name="allDayFlag" onchange="swapAllDayEvent(this)" value="on" checked="checked"/> 
     496                <input type="checkbox" name="allDayFlag" onclick="swapAllDayEvent(this)" value="on" checked="checked"/> 
    498497                <input type="hidden" name="eventStartDate.dateOnly" value="on" id="allDayField"/> 
    499498              </xsl:when> 
    500499              <xsl:otherwise> 
    501                 <input type="checkbox" name="allDayFlag" onchange="swapAllDayEvent(this)" value="off"/> 
     500                <input type="checkbox" name="allDayFlag" onclick="swapAllDayEvent(this)" value="off"/> 
    502501                <input type="hidden" name="eventStartDate.dateOnly" value="off" id="allDayField"/> 
    503502              </xsl:otherwise> 
     
    527526              <xsl:choose> 
    528527                <xsl:when test="/bedeworkadmin/formElements/form/end/type='E'"> 
    529                   <input type="radio" name="eventEndType" value="E" checked="checked" onClick="changeClass('endDateTime','shown');changeClass('endDuration','hidden');"/> 
     528                  <input type="radio" name="eventEndType" value="E" checked="checked" onClick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> 
    530529                </xsl:when> 
    531530                <xsl:otherwise> 
    532                   <input type="radio" name="eventEndType" value="E" onClick="changeClass('endDateTime','shown');changeClass('endDuration','hidden');"/> 
     531                  <input type="radio" name="eventEndType" value="E" onClick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> 
    533532                </xsl:otherwise> 
    534533              </xsl:choose> 
     
    537536                <xsl:choose> 
    538537                  <xsl:when test="/bedeworkadmin/formElements/form/end/type='E'">shown</xsl:when> 
    539                   <xsl:otherwise>hidden</xsl:otherwise> 
     538                  <xsl:otherwise>invisible</xsl:otherwise> 
    540539                </xsl:choose> 
    541540              </xsl:variable> 
     
    557556                </div> 
    558557              </div><br/> 
    559               <div id="clock" class="hidden"> 
     558              <div id="clock" class="invisible"> 
    560559                <xsl:call-template name="clock"/> 
    561560              </div> 
     
    563562                <xsl:choose> 
    564563                  <xsl:when test="/bedeworkadmin/formElements/form/end/type='D'"> 
    565                     <input type="radio" name="eventEndType" value="D" checked="checked" onClick="changeClass('endDateTime','hidden');changeClass('endDuration','shown');"/> 
     564                    <input type="radio" name="eventEndType" value="D" checked="checked" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> 
    566565                  </xsl:when> 
    567566                  <xsl:otherwise> 
    568                     <input type="radio" name="eventEndType" value="D" onClick="changeClass('endDateTime','hidden');changeClass('endDuration','shown');"/> 
     567                    <input type="radio" name="eventEndType" value="D" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> 
    569568                  </xsl:otherwise> 
    570569                </xsl:choose> 
     
    573572                  <xsl:choose> 
    574573                    <xsl:when test="/bedeworkadmin/formElements/form/end/type='D'">shown</xsl:when> 
    575                     <xsl:otherwise>hidden</xsl:otherwise> 
     574                    <xsl:otherwise>invisible</xsl:otherwise> 
    576575                  </xsl:choose> 
    577576                </xsl:variable> 
    578577                <xsl:variable name="durationHrMinClass"> 
    579578                  <xsl:choose> 
    580                     <xsl:when test="/bedeworkadmin/formElements/form/allDay/input/@checked='checked'">hidden</xsl:when> 
     579                    <xsl:when test="/bedeworkadmin/formElements/form/allDay/input/@checked='checked'">invisible</xsl:when> 
    581580                    <xsl:otherwise>shown</xsl:otherwise> 
    582581                  </xsl:choose> 
     
    631630                <xsl:choose> 
    632631                  <xsl:when test="/bedeworkadmin/formElements/form/end/type='N'"> 
    633                     <input type="radio" name="eventEndType" value="N" checked="checked" onClick="changeClass('endDateTime','hidden');changeClass('endDuration','hidden');"/> 
     632                    <input type="radio" name="eventEndType" value="N" checked="checked" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> 
    634633                  </xsl:when> 
    635634                  <xsl:otherwise> 
    636                     <input type="radio" name="eventEndType" value="N" onClick="changeClass('endDateTime','hidden');changeClass('endDuration','hidden');"/> 
     635                    <input type="radio" name="eventEndType" value="N" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> 
    637636                  </xsl:otherwise> 
    638637                </xsl:choose> 
     
    712711          <td> 
    713712            <xsl:if test="/bedeworkadmin/formElements/form/location/preferred/select/option"> 
    714               <select name="prefLocationId"
     713              <select name="prefLocationId" id="eventFormPrefLocationList"
    715714                <option value="-1"> 
    716715                  Select preferred: 
     
    720719              or Location (all): 
    721720            </xsl:if> 
    722             <select name="locationId"
     721            <select name="locationId" id="eventFormLocationList"
    723722              <option value="-1"> 
    724723                Select: 
     
    769768          <td> 
    770769            <xsl:if test="/bedeworkadmin/formElements/form/sponsor/preferred/select/option"> 
    771               <select name="prefSponsorId"
     770              <select name="prefSponsorId" id="eventFormSponsorList"
    772771                <option value="-1"> 
    773772                  Select preferred: 
     
    777776              or Contact (all): 
    778777            </xsl:if> 
    779             <select name="sponsorId"
     778            <select name="sponsorId" id="eventFormPrefSponsorList"
    780779              <option value="-1"> 
    781780                Select: 
     
    10121011            <xsl:when test="end/endtype = 'duration'"> 
    10131012              <div class="dateFields"> 
    1014                 <div class="hidden" id="endDuration"> 
     1013                <div class="invisible" id="endDuration"> 
    10151014                  <div class="durationBox"> 
    10161015                    <input type="text" name="eventDuration.daysStr" size="2" value="0" onChange="window.document.peForm.durationType[0].checked = true;"/>days 
  • trunk/calendar3/deployment/webadmin/webapp/resources/resources/bwClock.js

    r156 r159  
    66function bwClockLaunch(type) { 
    77  if ((document.getElementById("clock").className == "shown") && (bwClockCurrentType == type)) { 
    8     changeClass("clock","hidden"); // if the clock with the same type is showing, toggle it off 
     8    changeClass("clock","invisible"); // if the clock with the same type is showing, toggle it off 
    99  } else { // otherwise, turn it on and display the correct type 
    1010    bwClockRequestedType = type; 
    1111    bwClockCurrentType = type; 
    1212    changeClass("clock","shown"); 
     13    // the following is for Internet Explorer.  IE draws "windowed" objects 
     14    // and unwindowed objects on seperate "planes"; windowed objects are always 
     15    // drawn obove unwindowed objects and select boxes are "windowed"; 
     16    // this is required to make IE not overwrite the clock div with 
     17    // the select boxes that fall below it on the page.  Note: we set them 
     18    // to display:hidden (not none) so their space is still occupied (and the 
     19    // browser window doesn't shift around) 
     20    changeClass("eventFormPrefLocationList","hidden"); 
     21    changeClass("eventFormLocationList","hidden"); 
     22    changeClass("eventFormSponsorList","hidden"); 
     23    changeClass("eventFormPrefSponsorList","hidden"); 
    1324    bwClockIndicator = document.getElementById("bwClockDateTypeIndicator"); 
    1425    if (type == 'eventStartDate') { 
     
    2132 
    2233function bwClockClose() { 
    23   changeClass("clock","hidden"); 
     34  changeClass("clock","invisible"); 
     35  changeClass("eventFormPrefLocationList","shown"); 
     36  changeClass("eventFormLocationList","shown"); 
     37  changeClass("eventFormSponsorList","shown"); 
     38  changeClass("eventFormPrefSponsorList","shown"); 
    2439} 
    2540 
  • trunk/calendar3/deployment/webadmin/webapp/resources/resources/includes.js

    r156 r159  
    77  if (obj.checked) { 
    88    //lets keep it simple for now: just show or hide time fields 
    9     changeClass('startTimeFields','hidden'); 
    10     changeClass('endTimeFields','hidden'); 
    11     changeClass('durationHrMin','hidden'); 
     9    changeClass('startTimeFields','invisible'); 
     10    changeClass('endTimeFields','invisible'); 
     11    changeClass('durationHrMin','invisible'); 
    1212    allDayField.value = "on"; 
    1313  } else { 
     
    3838  } 
    3939} 
    40 //function launchClockMap(url) { 
    41 //  clockWindow = window.open(url, "clockWindow", "width=410,height=430,scrollbars=no,resizable=yes,alwaysRaised=yes,menubar=no,toolbar=no"); 
    42 //  window.clockWindow.focus(); 
    43 //} 
     40 
    4441function closePopUps() { 
    4542  if (window.clockWindow) { 
     
    4744  } 
    4845} 
    49 function  getCalendarDescription(calId,defaultMessage) { 
    50   div = document.getElementById("calendarDescription"); 
    51   if (calId == -1) { 
    52     div.innerHTML = defaultMessage; 
    53   } else { 
    54     div.innerHTML = calId; 
    55   } 
    56 
     46 
     47//function  getCalendarDescription(calId,defaultMessage) { 
     48//  div = document.getElementById("calendarDescription"); 
     49//  if (calId == -1) { 
     50//    div.innerHTML = defaultMessage; 
     51//  } else { 
     52//    div.innerHTML = calId; 
     53//  } 
     54//} 
  • trunk/calendar3/webadmin/war/docs/admingroup/modAdminGroup.jsp

    r2 r159  
    2121    </name> 
    2222    <desc> 
    23       <html:textarea property="updAdminGroup.description" cols="50"  rows="3" /
     23      <html:textarea property="updAdminGroup.description" cols="50"  rows="3"></html:textarea
    2424    </desc> 
    2525    <groupOwner> 
  • trunk/calendar3/webadmin/war/docs/category/modCategoryCommon.jsp

    r2 r159  
    1919    </td> 
    2020    <td> 
    21       <html:textarea property="category.description"  rows="3" cols="55" /
     21      <html:textarea property="category.description"  rows="3" cols="55" ></html:textarea
    2222      <span class="fieldInfo">(optional)</span> 
    2323    </td> 
  • trunk/calendar3/webadmin/war/docs/event/modEvent.jsp

    r2 r159  
    143143    </category> 
    144144 
    145     <desc><html:textarea property="event.description" rows="8" cols="55" styleId="iDesc" styleClass="edit"/></desc> 
     145    <desc><html:textarea property="event.description" rows="8" cols="55" styleId="iDesc" styleClass="edit"></html:textarea></desc> 
    146146    <descLength><bean:write name="peForm" property="maxDescriptionLength" /></descLength> 
    147147    <cost><html:text property="event.cost" size="30" styleId="iCost" styleClass="edit"/></cost>