Add a button for visiting security devices to the account manager security panel.

Temporarily remove the description for this button as it causes the panel to overflow. Hopefully we'll
put it back when I can create some more space.
This commit is contained in:
scott%scott-macgregor.org 2003-07-14 22:14:05 +00:00
parent dc2535e45b
commit bdd50fc85d
3 changed files with 24 additions and 4 deletions

View File

@ -408,4 +408,19 @@ function openCertManager()
else
window.open('chrome://pippki/content/certManager.xul', "",
'chrome,height=400,centerscreen,resizable=yes,dialog=no');
}
}
function openDeviceManager()
{
//check for an existing deviceManger window and focus it; it's not application modal
const kWindowMediatorContractID = "@mozilla.org/appshell/window-mediator;1";
const kWindowMediatorIID = Components.interfaces.nsIWindowMediator;
const kWindowMediator = Components.classes[kWindowMediatorContractID].getService(kWindowMediatorIID);
var lastCertManager = kWindowMediator.getMostRecentWindow("mozilla:devicemanager");
if (lastCertManager)
lastCertManager.focus();
else {
window.open('chrome://pippki/content/device_manager.xul', "devmgr",
'chrome,height=400,centerscreen,resizable=yes,dialog=no');
}
}

View File

@ -98,12 +98,16 @@
<!-- Certificate manager -->
<groupbox>
<caption label="&managecerts.label;"/>
<description>&managecerts.text;</description>
<hbox align="right">
<button label="&managecerts.button;"
oncommand="openCertManager();"
id="openCertManagerButton"
accesskey="&managecerts.accesskey;"/>
<button label="&managedevices.button;"
oncommand="openDeviceManager();"
id="openDeviceManagerButton"
accesskey="&managedevices.accesskey;"
prefstring="security.disable_button.openDeviceManager"/>
</hbox>
</groupbox>

View File

@ -13,7 +13,8 @@
<!ENTITY signingCert.message "Use this certificate to digitally sign messages you send:">
<!ENTITY signingCert.notselected "No certificate set">
<!ENTITY managecerts.label "Manage Certificates">
<!ENTITY managecerts.text "Use the Certificate Manager to manage your personal certificates, as well as those of other people and certificate authorities.">
<!ENTITY managecerts.label "Manage Certificates and Devices">
<!ENTITY managecerts.button "Manage Certificates...">
<!ENTITY managecerts.accesskey "M">
<!ENTITY managedevices.button "Manage Security Devices...">
<!ENTITY managedevices.accesskey "S">