Skip to content

Commit

Permalink
- WatchCrawler_p shows max. 80 characters of URLs now (maybe dynamica…
Browse files Browse the repository at this point in the history
…lly 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
  • Loading branch information
karlchenofhell committed Mar 7, 2007
1 parent 70cd391 commit 4f2e6ef
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 3 additions & 1 deletion htroot/BlacklistCleaner_p.java
Expand Up @@ -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();
Expand Down
10 changes: 9 additions & 1 deletion htroot/js/WatchCrawler.js
Expand Up @@ -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);
Expand All @@ -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;
Expand Down

0 comments on commit 4f2e6ef

Please sign in to comment.