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:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user