Workaround to check the checkbox.checked and set the right checkbox.value. Bug 314538

git-svn-id: svn://10.0.0.236/trunk@183288 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mgalli%geckonnection.com
2005-10-31 21:12:05 +00:00
parent fb23658dcb
commit 201d73ac94

View File

@@ -231,9 +231,17 @@ function PrefOkay() {
var prefSETValue=null;
if(transValidator!="") {
prefSETValue=eval(transValidator);
} else {
// Checkbox is always true so far. XUL spec says it should flip value property based on checkbox state.
// The following conditional chunk may be considered workaround code - bug 314538
if(elRef.nodeName=="checkbox") {
if(elRef.checked) {
elRef.value=true;
} else {
elRef.value=false;
}
}
prefSETValue=elRef.value;
}
if (gPref.getPrefType(prefName) == gPref.PREF_STRING){