i2psnark: Allow click on entire table cell for viewing torrent details

This commit is contained in:
zzz
2014-05-07 14:48:42 +00:00
parent a014918c0d
commit 2dc97b160a

View File

@ -1347,7 +1347,14 @@ public class I2PSnarkServlet extends BasicServlet {
}
// Torrent name column
out.write("</td><td class=\"snarkTorrentName\">");
out.write("</td><td class=\"snarkTorrentName\"");
if (isMultiFile) {
// link on the whole td
String jsec = encodedBaseName.replace("'", "\\'");
out.write(" onclick=\"document.location='" + encodedBaseName + "/';\">");
} else {
out.write('>');
}
if (remaining == 0 || isMultiFile) {
StringBuilder buf = new StringBuilder(128);
buf.append("<a href=\"").append(encodedBaseName);