diff --git a/htroot/BlacklistImpExp_p.java b/htroot/BlacklistImpExp_p.java index 2027ec698..0235cd75f 100644 --- a/htroot/BlacklistImpExp_p.java +++ b/htroot/BlacklistImpExp_p.java @@ -58,7 +58,7 @@ public class BlacklistImpExp_p { // if we have not chosen a blacklist until yet we use the first file if (blacklistToUse == null && dirlist != null && !dirlist.isEmpty()) { - blacklistToUse = dirlist.get(0); + blacklistToUse = Blacklist.defaultBlacklist(sb.listsPath); } // List known hosts for BlackList retrieval diff --git a/htroot/sharedBlacklist_p.html b/htroot/sharedBlacklist_p.html index 922c614db..3fba2b52f 100644 --- a/htroot/sharedBlacklist_p.html +++ b/htroot/sharedBlacklist_p.html @@ -9,14 +9,21 @@ var selectForm = document.forms.namedItem(name); var count = selectForm.elements["num"].value; for(i = 0; i<= count; i++){ - selectForm.elements["item" + i].checked = true; + //If it isn't "undefined" and it isn't "null", then it exists. + if(typeof(selectForm.elements["item" + i]) != 'undefined' && selectForm.elements["item" + i] != null) { + //thecheckbox.checked = true; + selectForm.elements["item" + i].checked = true; + } } } + function deselectall(name){ var selectForm = document.forms.namedItem(name); var count = selectForm.elements["num"].value; for(i = 0; i<= count; i++){ - selectForm.elements["item" + i].checked = false; + if(typeof(selectForm.elements["item" + i]) != 'undefined' && selectForm.elements["item" + i] != null){ + selectForm.elements["item" + i].checked = false; + } } } --> @@ -65,7 +72,7 @@ @@ -79,7 +86,13 @@ #{urllist}#