diff --git a/htroot/WatchCrawler.html b/htroot/WatchCrawler.html
index caa112ab5..b45494458 100644
--- a/htroot/WatchCrawler.html
+++ b/htroot/WatchCrawler.html
@@ -1,7 +1,7 @@
-YaCy '#[clientname]#': Watch Crawler
+YaCy Watch Crawler
#%env/templates/metas.template%#
@@ -13,6 +13,7 @@
Indexing Queue:
#%env/templates/footer.template%#
diff --git a/htroot/js/WatchCrawler.js b/htroot/js/WatchCrawler.js
index 761503390..88b966f6e 100644
--- a/htroot/js/WatchCrawler.js
+++ b/htroot/js/WatchCrawler.js
@@ -2,40 +2,100 @@ function handleResponse(){
if(http.readyState == 4){
var response = http.responseXML;
indexingTable=document.getElementById("indexingTable");
- entries=response.getElementsByTagName("entry");
+ if(response != null){
+ entries=response.getElementsByTagName("entry");
+ }
//skip the Tableheade
- row=indexingTable.firstChild.nextSibling.nextSibling;
+ row=indexingTable.firstChild.nextSibling.firstChild.nextSibling.nextSibling;
while(row != null){ //delete old entries
- indexingTable.removeChild(row);
- row=indexingTable.firstChild.nextSibling.nextSibling;
+ indexingTable.firstChild.nextSibling.removeChild(row);
+ row=indexingTable.firstChild.nextSibling.firstChild.nextSibling.nextSibling;
}
dark=false;
for(i=0;iDelete'
+
+ //create delete link
+ col=document.createElement("td");
+ link=document.createElement("a");
+ link.setAttribute("href", "IndexCreateIndexingQueue_p.html?deleteEntry="+hash);
+ text=document.createTextNode("Delete");
+ link.appendChild(text);
+ col.appendChild(link)
+ row.appendChild(col);
+ return row;
+}