Changeset 2267

Show
Ignore:
Timestamp:
07/14/09 11:52:25
Author:
johnsa
Message:

admin client: correctly set filters when adding calendars in public tree

Files:

Legend:

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

    r2266 r2267  
    39203920    <h3>Add Calendar, Folder, or Subscription</h3> 
    39213921    <p class="note">Note: Access may be set on a calendar after it is created.</p> 
    3922     <form name="addCalForm" method="post" action="{$calendar-update}" onsubmit="setCalendarAlias(this)"> 
     3922    <form name="addCalForm" method="post" action="{$calendar-update}" onsubmit="setCatFilters(this);return setCalendarAlias(this);"> 
    39233923      <table class="common"> 
    39243924        <tr> 
     
    40294029      <div id="subscriptionTypes" class="invisible"> 
    40304030        <h4>Subscription URL</h4> 
     4031        <input type="hidden" value="publicTree" name="subType" id="bwSubType"/> 
    40314032        <div id="subscriptionTypeExternal"> 
    40324033          <table class="common" id="subscriptionTypes"> 
  • trunk/deployment/webadmin/webapp/resources/resources/bedework.js

    r2157 r2267  
    191191  } else if (formObj.type.value == "subscription") { 
    192192    switch (formObj.subType.value) { 
     193      case "publicTree": 
     194        // do nothing: when adding a subscription to the public tree, we set the fields directly. 
     195        break; 
    193196      case "public": 
    194197        formObj.aliasUri.value = "bwcal://" + formObj.publicAliasHolder.value;