Changeset 3077

Show
Ignore:
Timestamp:
11/29/10 15:44:23
Author:
johnsa
Message:

personal client: correct public address book master switch click handling

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/javascript/bedeworkScheduling.js

    r3076 r3077  
    708708      addAttendeeHtml += '    <span class="bwAddAttendeeSubFieldHead">' + bwAddAttendeeBookDisp + '</span>'; 
    709709      addAttendeeHtml += '    <input type="radio" name="bwAddAttendeeAddrBk" value="/user/' + bwGrid.curUser + '/addressbook" checked="checked" onclick="changeClass(\'bwAddAttendeeTypeBlock\',\'invisible\');bwGrid.updateBookPath(this.value);">personal'; 
    710       addAttendeeHtml += '    <input type="radio" name="bwAddAttendeeAddrBk" value="/public" onclick="changeClass(\'bwAddAttendeeTypeBlock\',\'bwAddAttendeeSubField\');bwGrid.updateBookPath(this.form.bwAddAttendeeType.value);">public'; 
     710      // note: the public switch uses a separate click handler set after the display is written to the output (below) 
     711      addAttendeeHtml += '    <input type="radio" name="bwAddAttendeeAddrBk" id="bwAddAttendeePublicSwitch" value="/public" onclick="changeClass(\'bwAddAttendeeTypeBlock\',\'bwAddAttendeeSubField\');">public'; 
    711712      addAttendeeHtml += '  </div>'; 
    712713      addAttendeeHtml += '  <div class="invisible" id="bwAddAttendeeTypeBlock">'; 
     
    10261027     ); 
    10271028      
     1029     // add a handler for the public switch (not in-line like the others) 
     1030     $("#bwAddAttendeePublicSwitch").click(function(){ 
     1031       bwGrid.updateBookPath($('input:radio[name=bwAddAttendeeType]:checked').val());   
     1032     }); 
     1033      
    10281034     // add attendee box - use jquery UI autocomplete 
    10291035     // carddavUrl supplied in bedework.js