home *** CD-ROM | disk | FTP | other *** search
/ ftp.swcp.com / ftp.swcp.com.zip / ftp.swcp.com / mac / mozilla-macos9-1.3.1.sea.bin / Mozilla1.3.1 / Chrome / comm.jar / content / wallet / walletTasksOverlay.xul < prev   
Extensible Markup Language  |  2003-06-08  |  3KB  |  82 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!--
  4.    The contents of this file are subject to the Netscape Public
  5.    License Version 1.1 (the "License"); you may not use this file
  6.    except in compliance with the License. You may obtain a copy of
  7.    the License at http://www.mozilla.org/NPL/
  8.     
  9.    Software distributed under the License is distributed on an "AS
  10.    IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  11.    implied. See the License for the specific language governing
  12.    rights and limitations under the License.
  13.     
  14.    The Original Code is Mozilla Communicator client code, released
  15.    March 31, 1998.
  16.    
  17.    The Initial Developer of the Original Code is Netscape
  18.    Communications Corporation. Portions created by Netscape are
  19.    Copyright (C) 1998-1999 Netscape Communications Corporation. All
  20.    Rights Reserved.
  21.    
  22.    Contributor(s): 
  23.   -->
  24.  
  25. <!DOCTYPE window SYSTEM "chrome://wallet/locale/walletTasksOverlay.dtd">
  26.  
  27. <overlay id="walletTasksOverlay"
  28.          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  29.  
  30.   <script type="application/x-javascript">
  31.   <![CDATA[
  32.  
  33.     // expire master password
  34.     function walletPasswordExpire() {
  35.       var wallet = Components.classes['@mozilla.org/wallet/wallet-service;1'];
  36.       wallet = wallet.getService();
  37.       wallet = wallet.QueryInterface(Components.interfaces.nsIWalletService);
  38.       var strings = document.getElementById("menu_passwordManager");
  39.  
  40.       if (wallet.WALLET_ExpirePassword()) {
  41.         window.alert(strings.getAttribute("PasswordExpired"));
  42.       } else {
  43.         window.alert(strings.getAttribute("PasswordNotExpired"));
  44.       }
  45.     }
  46.  
  47.     function walletPasswordDialog() {
  48.       window.openDialog("chrome://communicator/content/wallet/SignonViewer.xul",
  49.                         "_blank","chrome,resizable=yes","S");
  50.     }
  51.  
  52.   ]]>
  53.   </script>         
  54.  
  55.   <!-- tasksOverlay menu items -->
  56.   <menupopup id="taskPopup">
  57.     <menu id="menu_passwordManager"
  58.           insertbefore="downloadmgr"
  59.           label="&walletPasswordManager.label;"
  60.           accesskey="&walletPasswordManager.accesskey;"
  61.           PasswordNotChanged = "&PasswordNotChanged;"
  62.           PasswordExpired = "&PasswordExpired;"
  63.           PasswordNotExpired = "&PasswordNotExpired;">
  64.       <menupopup>
  65.         <menuitem label="&walletExpirePasswordCmd.label;"
  66.                   accesskey="&walletExpirePasswordCmd.accesskey;"
  67.                   oncommand="walletPasswordExpire();"/>
  68.         <menuitem label="&walletDisplaySignonsCmd.label;"
  69.                   accesskey="&walletDisplaySignonsCmd.accesskey;"
  70.                   oncommand="walletPasswordDialog();"/> 
  71.       </menupopup>
  72.     </menu>
  73.   </menupopup>
  74.  
  75.   <stringbundleset id="stringbundleset">
  76.     <stringbundle id="bundle_pipnss"
  77.                   src="chrome://pipnss/locale/pipnss.properties"/>
  78.   </stringbundleset>
  79.  
  80.  
  81. </overlay>
  82.