- optimize selectall-javascript-function (in firefox more then 10 times faster now)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4610 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
f1ori 17 years ago
parent 0241d070bc
commit 98a03249f3

@ -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;
}
}
-->

Loading…
Cancel
Save