diff options
| author | orbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2010-12-30 01:46:37 +0000 |
|---|---|---|
| committer | orbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2010-12-30 01:46:37 +0000 |
| commit | 621e17607147fea0aa56f23cdb68bd4e407a8fe1 (patch) | |
| tree | 3a2ccee0a7cce50c23cdc284713c028ff19f7bc4 /htroot/js/yacyinteractive.js | |
| parent | bbd3d64cc2a461ea96f4c5d15345e91ec873eb61 (diff) | |
enhancement in table display of path names
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7417 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'htroot/js/yacyinteractive.js')
| -rw-r--r-- | htroot/js/yacyinteractive.js | 5 |
1 files changed, 4 insertions, 1 deletions
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; |
