home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / xulrunner-1.9.0.14 / chrome / toolkit.jar / content / mozapps / preferences / changemp.xul < prev    next >
Encoding:
Extensible Markup Language  |  2007-08-22  |  2.3 KB  |  64 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  4.  
  5. <!DOCTYPE dialog [
  6. <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
  7. <!ENTITY % changempDTD SYSTEM "chrome://mozapps/locale/preferences/changemp.dtd" >
  8. %brandDTD;
  9. %changempDTD;
  10. ]>
  11.  
  12. <dialog id="changemp" title="&setPassword.title;"
  13.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 
  14.         style="width: 35em;" 
  15.         ondialogaccept="setPassword();" 
  16.         onload="init()">
  17.  
  18.   <script type="application/javascript" src="chrome://mozapps/content/preferences/changemp.js"/>
  19.  
  20.   <stringbundle id="bundlePreferences" src="chrome://mozapps/locale/preferences/preferences.properties"/>
  21.  
  22.   <description control="pw1">&masterPasswordDescription.label;</description>
  23.  
  24.   <groupbox>
  25.     <grid>
  26.       <columns>
  27.         <column/>
  28.         <column/> 
  29.       </columns>
  30.       <rows>
  31.         <row>
  32.           <label control="oldpw" value="&setPassword.oldPassword.label;"/> 
  33.           <textbox id="oldpw" type="password"/>
  34.           <!-- This textbox is inserted as a workaround to the fact that making the 'type' 
  35.                 & 'disabled' property of the 'oldpw' textbox toggle between ['password' & 
  36.                 'false'] and ['text' & 'true'] - as would be necessary if the menu has more 
  37.                 than one tokens, some initialized and some not - does not work properly. So, 
  38.                 either the textbox 'oldpw' or the textbox 'message' would be displayed, 
  39.                 depending on the state of the token selected 
  40.           -->
  41.           <textbox id="message" disabled="true" />
  42.         </row>
  43.         <row>
  44.           <label control="pw1" value="&setPassword.newPassword.label;"/> 
  45.           <textbox id="pw1" type="password" 
  46.                    oninput="setPasswordStrength(); checkPasswords();"/> 
  47.         </row>
  48.         <row>
  49.           <label control="pw2" value="&setPassword.reenterPassword.label;"/> 
  50.           <textbox id="pw2" type="password" oninput="checkPasswords();"/>  
  51.         </row>
  52.       </rows>
  53.     </grid>
  54.   </groupbox>
  55.  
  56.   <groupbox>
  57.     <caption label="&setPassword.meter.label;"/>
  58.     <progressmeter id="pwmeter" mode="determined" value="0"/>
  59.   </groupbox>
  60.  
  61.   <description control="pw2" class="header">&masterPasswordWarning.label;</description>
  62.  
  63. </dialog>
  64.