From f22db2162abcfb2b6740ea71d97e524d09873d0c Mon Sep 17 00:00:00 2001 From: "morse%netscape.com" Date: Sat, 17 Jun 2000 22:24:07 +0000 Subject: [PATCH] restoring changes that were accidentally backed out, r=dveditz --- .../resources/content/tasksOverlay.js | 15 ++++++------ .../resources/content/tasksOverlay.xul | 23 +++++++++++-------- .../resources/locale/en-US/tasksOverlay.dtd | 7 +++--- 3 files changed, 24 insertions(+), 21 deletions(-) diff --git a/xpfe/communicator/resources/content/tasksOverlay.js b/xpfe/communicator/resources/content/tasksOverlay.js index 9728ca7e5db3..deecae503fe2 100644 --- a/xpfe/communicator/resources/content/tasksOverlay.js +++ b/xpfe/communicator/resources/content/tasksOverlay.js @@ -235,13 +235,6 @@ function HideImage() { element.setAttribute("disabled","true" ); } -function HideImage() { - var element; - element = document.getElementById("image"); - element.setAttribute("style","display: none;" ); - element.setAttribute("disabled","true" ); -} - function HideEncryptOrObscure() { var elementOn, elementOff; if (this.pref.GetBoolPref("wallet.crypto")) { @@ -260,6 +253,10 @@ function CheckForWalletAndImage() // remove either encrypt or obscure depending on pref setting HideEncryptOrObscure(); + // remove quickfill since it was just for development purposes + element = document.getElementById("walletQuickFill"); + element.setAttribute("style","display: none;" ); + // remove wallet functions if not in browser try { if (!appCore) { @@ -292,7 +289,7 @@ function CheckForWalletAndImage() // perform a wallet action function WalletAction( action ) { - if (action == "password" || action == "expire") { + if (action == "password" || action == "expire" || action == "clear") { wallet = Components.classes['component://netscape/wallet/wallet-service']; wallet = wallet.getService(); wallet = wallet.QueryInterface(Components.interfaces.nsIWalletService); @@ -301,6 +298,8 @@ function WalletAction( action ) wallet.WALLET_ChangePassword(); } else if (action == "expire") { wallet.WALLET_ExpirePassword(); + } else if (action == "clear") { + wallet.WALLET_DeleteAll(); } return; } diff --git a/xpfe/communicator/resources/content/tasksOverlay.xul b/xpfe/communicator/resources/content/tasksOverlay.xul index efdb2f80b777..d99e7a8a6b58 100644 --- a/xpfe/communicator/resources/content/tasksOverlay.xul +++ b/xpfe/communicator/resources/content/tasksOverlay.xul @@ -49,6 +49,19 @@ oncommand="WalletAction('encrypt');"/> + + + + + + + + + + + + @@ -75,16 +88,6 @@ oncommand="WalletAction('imageBlock');"/> - - - - - - - - - - diff --git a/xpfe/communicator/resources/locale/en-US/tasksOverlay.dtd b/xpfe/communicator/resources/locale/en-US/tasksOverlay.dtd index 20c26242919e..252086e915c2 100644 --- a/xpfe/communicator/resources/locale/en-US/tasksOverlay.dtd +++ b/xpfe/communicator/resources/locale/en-US/tasksOverlay.dtd @@ -20,11 +20,11 @@ - + - + - + @@ -42,6 +42,7 @@ +