Skip to content

Commit

Permalink
- optimize selectall-javascript-function (in firefox more then 10 tim…
Browse files Browse the repository at this point in the history
…es faster now)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4610 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
f1ori committed Mar 28, 2008
1 parent 0241d07 commit 98a0324
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions htroot/sharedBlacklist_p.html
Expand Up @@ -6,13 +6,17 @@
<script>
<!--
function selectall(){
for(i = 0; i<= document.getElementsByName("num")[0].value; i++){
document.getElementsByName("item" + i)[0].checked = true;
var selectForm = document.forms[0];
var count = selectForm.elements["num"].value;
for(i = 0; i<= count; i++){
selectForm.elements["item" + i].checked = true;
}
}
function deselectall(){
for(i = 0; i<= document.getElementsByName("num")[0].value; i++){
document.getElementsByName("item" + i)[0].checked = false;
var selectForm = document.forms[0];
var count = selectForm.elements["num"].value;
for(i = 0; i<= count; i++){
selectForm.elements["item" + i].checked = false;
}
}
-->
Expand Down

0 comments on commit 98a0324

Please sign in to comment.