Skip to content

Commit

Permalink
The Queue works now in Konqueror.
Browse files Browse the repository at this point in the history
TODO: status_p.xml values, why is anchor not working?


git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1613 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
allo committed Feb 11, 2006
1 parent d71ec1d commit e58b558
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions htroot/js/WatchCrawler.js
Expand Up @@ -52,11 +52,12 @@ function handleIndexingQueue(){
}

//skip the Tableheade
row=indexingTable.firstChild.nextSibling.firstChild.nextSibling.nextSibling;
row=getNextSibling(getFirstChild(getFirstChild(indexingTable, "tbody"), "tr"), "tr")
//row=indexingTable.firstChild.nextSibling.firstChild.nextSibling.nextSibling;

while(row != null){ //delete old entries
indexingTable.firstChild.nextSibling.removeChild(row);
row=indexingTable.firstChild.nextSibling.firstChild.nextSibling.nextSibling;
getFirstChild(indexingTable, "").removeChild(row);
row=getNextSibling(getFirstChild(getFirstChild(indexingTable, "tbody"), "tr"), "tr")
}

dark=false;
Expand All @@ -82,7 +83,7 @@ function handleIndexingQueue(){
}else{
row.setAttribute("class", "TableCellLight");
}
indexingTable.firstChild.nextSibling.appendChild(row);
getFirstChild(indexingTable, "tbody").appendChild(row);
dark=!dark;
}
}
Expand All @@ -97,19 +98,25 @@ function getValue(element){
return "";
}
function getFirstChild(element, childname){
if(element == null){
return null;
}
child=element.firstChild;
while(child != null){
if(child.nodeType!=3 && (child.nodeName==childname || childname=="")){
if(child.nodeType!=3 && (child.nodeName.toLowerCase()==childname.toLowerCase() || childname=="")){
return child;
}
child=child.nextSibling;
}
return null;
}
function getNextSibling(element, childname){
if(element == null){
return null;
}
child=element.nextSibling;
while(child != null){
if(child.nodeType==1 && (child.nodeName==childname || childname=="")){
if(child.nodeType==1 && (child.nodeName.toLowerCase()==childname.toLowerCase() || childname=="")){
return child;
}
child=child.nextSibling;
Expand Down

0 comments on commit e58b558

Please sign in to comment.