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
Родитель 27e3f24561
Коммит 4077c6c37f
3 изменённых файлов: 24 добавлений и 4 удалений

Просмотреть файл

@ -409,3 +409,18 @@ function openCertManager()
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');
}
}

Просмотреть файл

@ -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>

Просмотреть файл

@ -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">