Bug 260364 Fixup radiogroups to use new .value functionality of radio.xml

p=me r/sr=neil a=asa
This commit is contained in:
bugzilla%arlen.demon.co.uk 2004-09-24 00:55:43 +00:00
parent 03bbc8db42
commit ecc947a4ea
2 changed files with 6 additions and 8 deletions

View File

@ -77,8 +77,7 @@
try {
// set prefLevel radio button
p3pLevel = pref.getIntPref("network.cookie.p3plevel");
var radio = document.getElementById("p3pLevel");
radio.selectedItem = radio.childNodes[p3pLevel];
document.getElementById("p3pLevel").value = p3pLevel;
// set custom settings
if (p3pLevel == custom) {
@ -96,8 +95,8 @@
function onOK(){
var p3pLevel = document.getElementById("p3pLevel").selectedItem.value;
pref.setIntPref("network.cookie.p3plevel",p3pLevel);
var p3pLevel = document.getElementById("p3pLevel").value;
pref.setIntPref("network.cookie.p3plevel", p3pLevel);
var value = "";
for (var i=0; i<p3pLength; i++) {

View File

@ -77,8 +77,7 @@
try {
// set prefLevel radio button
p3pLevel = pref.getIntPref("network.cookie.p3plevel");
var radio = document.getElementById("p3pLevel");
radio.selectedItem = radio.childNodes[p3pLevel];
document.getElementById("p3pLevel").value = p3pLevel;
// set custom settings
if (p3pLevel == custom) {
@ -96,8 +95,8 @@
function onOK(){
var p3pLevel = document.getElementById("p3pLevel").selectedItem.value;
pref.setIntPref("network.cookie.p3plevel",p3pLevel);
var p3pLevel = document.getElementById("p3pLevel").value;
pref.setIntPref("network.cookie.p3plevel", p3pLevel);
var value = "";
for (var i=0; i<p3pLength; i++) {