From 621e17607147fea0aa56f23cdb68bd4e407a8fe1 Mon Sep 17 00:00:00 2001 From: orbiter Date: Thu, 30 Dec 2010 01:46:37 +0000 Subject: [PATCH] enhancement in table display of path names git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7417 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/js/yacyinteractive.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htroot/js/yacyinteractive.js b/htroot/js/yacyinteractive.js index 612a5aa23..f1ad1b63f 100644 --- a/htroot/js/yacyinteractive.js +++ b/htroot/js/yacyinteractive.js @@ -162,8 +162,11 @@ function resultLine(type, item, linenumber) { host = item.link.substring(p + 2, q); path = item.link.substring(q + 1); } - if (path.length >= 40) path = path.substring(0, 18) + "..." + path.substring(path.length - 19); title = item.title; + q = path.lastIndexOf("/"); + if (q > 0) path = path.substring(0, q); + path = unescape(path); + if (path.length >= 40) path = path.substring(0, 18) + "..." + path.substring(path.length - 19); if (title == "") title = path; if (title.length >= 60) title = title.substring(0, 28) + "..." + title.substring(title.length - 29); pd = item.pubDate;