- WatchCrawler_p shows max. 80 characters of URLs now (maybe dynamically adjustable based on browser width?)

- typo in BlacklistCleaner

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3445 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
karlchenofhell 18 years ago
parent 70cd391ea1
commit 4f2e6ef47b

@ -83,7 +83,9 @@ public class BlacklistCleaner_p {
private static final int ERR_HOST_WRONG_CHARS = 4;
private static final int ERR_DOUBLE_OCCURANCE = 5;
public static final Class[] supportedBLEngines = { plasmaSwitchboard.class };
public static final Class[] supportedBLEngines = {
defaultURLPattern.class
};
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) {
serverObjects prop = new serverObjects();

@ -210,6 +210,14 @@ function updateTable(indexingqueue, tablename){
}
}
function shortenURL(url) {
if (url.length > 80) {
return url.substr(0, 80) + "...";
} else {
return url;
}
}
function createIndexingRow(queue, profile, initiator, depth, modified, anchor, url, size, deletebutton){
row=document.createElement("tr");
row.setAttribute("height", 10);
@ -219,7 +227,7 @@ function createIndexingRow(queue, profile, initiator, depth, modified, anchor, u
row.appendChild(createCol(depth));
row.appendChild(createCol(modified));
row.appendChild(createCol(anchor));
row.appendChild(createLinkCol(url, url));
row.appendChild(createLinkCol(url, shortenURL(url)));
row.appendChild(createCol(size));
row.appendChild(deletebutton);
return row;

Loading…
Cancel
Save