зеркало из https://github.com/mozilla/pjs.git
Fix for Bug 91978 Checking in for Eddy Kim
r=javi, sr=blake Make some PSM prefs lockable.
This commit is contained in:
Родитель
d7e341a8dd
Коммит
c2aadb93fb
|
@ -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>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче