home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / mozil06.zip / bin / chrome / messenger.jar / content / messenger / addressbook / pref-addressing.xul < prev   
Extensible Markup Language  |  2001-03-23  |  4KB  |  87 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
  3. <?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
  4.  
  5. <!DOCTYPE window SYSTEM "chrome://messenger/locale/addressbook/pref-addressing.dtd">
  6.  
  7. <window xmlns:html="http://www.w3.org/1999/xhtml"
  8.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  9.         onload="parent.initPanel('chrome://messenger/content/addressbook/pref-addressing.xul');"
  10.         class="color-dialog"
  11.         orient="vertical">
  12.  
  13.   <script language="javascript">
  14.   <![CDATA[
  15.     var _elementIDs = ["emailCollection", "emailCollectionIncoming", "emailCollectionOutgoing", "addressingAutocomplete", "enableCABsizeLimit", "CABsizeLimit"];
  16.   ]]>
  17.  
  18.     function Startup(){
  19.         doEnabling();
  20.     }
  21.  
  22.     function doEnabling()
  23.     {
  24.         var emailCollection = document.getElementById("emailCollection");
  25.         var emailCollectionIncoming = document.getElementById("emailCollectionIncoming");
  26.         var emailCollectionOutgoing = document.getElementById("emailCollectionOutgoing");
  27.         var emailCollectionTypeText = document.getElementById("emailCollectionTypeText");
  28.         var enableCABsizeLimit = document.getElementById("enableCABsizeLimit");
  29.         var CABsizeLimit = document.getElementById("CABsizeLimit");
  30.         var useCABSizelimitPart2 = document.getElementById("useCABSizelimitPart2");
  31.         
  32.         if( emailCollection.checked ){
  33.             emailCollectionIncoming.removeAttribute("disabled");
  34.             emailCollectionOutgoing.removeAttribute("disabled");
  35.             emailCollectionTypeText.removeAttribute("disabled");
  36.             enableCABsizeLimit.removeAttribute("disabled");
  37.             CABsizeLimit.removeAttribute("disabled");
  38.             useCABSizelimitPart2.removeAttribute("disabled");
  39.         } else {
  40.             emailCollectionIncoming.setAttribute("disabled", "true");
  41.             emailCollectionOutgoing.setAttribute("disabled", "true");
  42.             emailCollectionTypeText.setAttribute("disabled", "true");
  43.             enableCABsizeLimit.setAttribute("disabled", "true");
  44.             CABsizeLimit.setAttribute("disabled", "true");
  45.             useCABSizelimitPart2.setAttribute("disabled", "true");
  46.         }
  47.  
  48.     }
  49.   </script>  
  50.     
  51.   <box class="box-smallheader" title="&pane.title;"/>
  52.  
  53.     <titledbox orient="vertical">
  54.     <title><text value="&emailCollectiontitle.label;"/></title>
  55.     <html>&emailCollectiontext.label;</html>
  56.         <checkbox id="emailCollection" value="&emailCollectionEnable.label;"
  57.               pref="true" preftype="bool" prefstring="mail.collect_email_address"
  58.               prefattribute="checked" oncommand="doEnabling();"/>
  59.     <box orient="vertical" autostretch="never" class="indent">
  60.         <text class="label" value="&emailCollectionTypeText.label;" id="emailCollectionTypeText"/>
  61.         <checkbox id="emailCollectionIncoming" value="&emailCollectionIncomingEnable.label;"
  62.               pref="true" preftype="bool" prefstring="mail.collect_email_address_incoming"
  63.               prefattribute="checked"/>
  64.         <checkbox id="emailCollectionOutgoing" value="&emailCollectionOutgoingEnable.label;"
  65.               pref="true" preftype="bool" prefstring="mail.collect_email_address_outgoing"
  66.               prefattribute="checked"/>
  67.         <box autostretch="never">
  68.             <checkbox id="enableCABsizeLimit" value="&useCABSizelimitPart1.label;"
  69.                 pref="true" preftype="bool" prefstring="mail.collect_email_address_enable_size_limit"
  70.                 prefattribute="checked"/>
  71.             <textfield id="CABsizeLimit" size="4" pref="true" preftype="int"
  72.                     prefstring="mail.collect_email_address_size_limit" prefattribute="value"/>
  73.             <text id="useCABSizelimitPart2" class="label" value="&useCABSizelimitPart2.label;"/>
  74.         </box> 
  75.     </box>
  76.     </titledbox>
  77.     
  78.     <titledbox orient="vertical">
  79.       <title><text value="&addressingTitle.label;"/></title>
  80.       <html>&addressingText.label;</html>
  81.         <checkbox id="addressingAutocomplete" value="&addressingEnable.label;"
  82.           pref="true" preftype="bool" prefstring="mail.enable_autocomplete"
  83.           prefattribute="checked"/>
  84.     </titledbox>
  85.  
  86. </window>
  87.