Preference- Advanced-Scripts and Plugins can not be locked
neil.parkwaycc.co.uk: review+
jag: superreview+
patch by brian.lu@sun.com
This commit is contained in:
pete.zha%sun.com 2006-05-17 02:39:26 +00:00
Родитель 285e4c3839
Коммит 2843389248
1 изменённых файлов: 14 добавлений и 7 удалений

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

@ -38,15 +38,22 @@
*
* ***** END LICENSE BLOCK ***** */
function setDisableState(id, state) {
var component = document.getElementById(id);
var prefString = component.getAttribute("prefstring");
var isLocked = parent.hPrefWindow.getPrefIsLocked(prefString);
component.disabled = isLocked || state;
}
function changeDisabledState(state){
//Set the states of the groupbox children state based on the "javascript enabled" checkbox value
document.getElementById("allowScripts").disabled = state;
document.getElementById("allowWindowMoveResize").disabled = state;
document.getElementById("allowImageSrcChange").disabled = state;
document.getElementById("allowWindowStatusChange").disabled = state;
document.getElementById("allowWindowFlip").disabled = state;
document.getElementById("allowHideStatusBar").disabled = state;
document.getElementById("allowContextmenuDisable").disabled = state;
setDisableState("allowScripts", state);
setDisableState("allowWindowMoveResize", state);
setDisableState("allowImageSrcChange", state);
setDisableState("allowWindowStatusChange", state);
setDisableState("allowWindowFlip", state);
setDisableState("allowHideStatusBar", state);
setDisableState("allowContextmenuDisable", state);
}
function javascriptEnabledChange(){