Fix for Bug 91978 Checking in for Eddy Kim

r=javi, sr=blake

Make some PSM prefs lockable.
This commit is contained in:
javi%netscape.com 2001-08-02 20:11:38 +00:00
Родитель d7e341a8dd
Коммит c2aadb93fb
5 изменённых файлов: 25 добавлений и 6 удалений

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

@ -69,7 +69,10 @@
</html>
<hbox halign="left" autostretch="never">
<button class="dialog" label="&managecerts.button;" disabled="false"
oncommand="openCertManager();" />
oncommand="openCertManager();"
id="openCertManagerButton"
pref="true" preftype="bool" prefattribute="disabled"
prefstring="security.disable_button.openCertManager" />
</hbox>
</groupbox>
@ -81,7 +84,10 @@
</html>
<hbox halign="left" autostretch="never">
<button class="dialog" label="&managedevices.button;" disabled="false"
oncommand="openDeviceManager();" />
oncommand="openDeviceManager();"
id="openDeviceManagerButton"
pref="true" preftype="bool" prefattribute="disabled"
prefstring="security.disable_button.openDeviceManager" />
</hbox>
</groupbox>

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

@ -55,6 +55,10 @@
} catch(e) { /* Put debug output here */ }
element.setAttribute("checked", prefValue);
// disable xul element if the pref is locked.
if (prefs.PrefIsLocked(prefString)) {
element.disabled=true;
}
}
}

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

@ -49,7 +49,10 @@
</html>
<hbox halign="left" autostretch="never">
<button class="dialog" label="&changepassword.button;" disabled="false"
oncommand="ChangePW();" />
oncommand="ChangePW();"
id="changePasswordButton"
pref="true" preftype="bool" prefattribute="disabled"
prefstring="security.disable_button.changePassword" />
</hbox>
</groupbox>

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

@ -69,7 +69,10 @@
<vbox halign="right">
<button class="dialog" label="&edit.sslciphers;"
oncommand="window.openDialog('chrome://pippki/content/pref-ciphers.xul', '',
'modal=yes,resizable,chrome');" />
'modal=yes,resizable,chrome');"
id="editSSLCiphersButton"
pref="true" preftype="bool" prefattribute="disabled"
prefstring="security.disable_button.editSSLCiphers" />
</vbox>
</groupbox>

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

@ -52,8 +52,11 @@
<label value="&validation.crl.label;"/>
<html> &validation.crl.description; </html>
<hbox halign="left" autostretch="never">
<button class="dialog" label="&validation.managecrls.button;" disabled="false"
oncommand="openCrlManager();" />
<button class="dialog" label="&validation.managecrls.button;"
oncommand="openCrlManager();"
id="managecrlbutton"
pref="true" preftype="bool" prefattribute="disabled"
prefstring="security.OCSP.disable_button.managecrl" />
</hbox>
</groupbox>