From cf5b5b164d2ce94276bfce246925624cd4218c3c Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Sat, 21 Mar 2020 11:46:09 +0000 Subject: [PATCH] copy hash to clipboard in files table --- webui/src/main/js/filesTable.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/webui/src/main/js/filesTable.js b/webui/src/main/js/filesTable.js index 3d31176d..588113b6 100644 --- a/webui/src/main/js/filesTable.js +++ b/webui/src/main/js/filesTable.js @@ -29,15 +29,18 @@ class SharedFile { published = "" } + var infoHashTextArea = "" + var copyInfoHashLink = new Link(_t("Copy hash to clipboard"), "copyAndAlert", [this.infoHash, _t("Hash copied to clipboard")]) + var showCommentHtml = "" var showCommentLink = new Link(_t("Comment"), "showCommentForm", [this.path]) showCommentHtml = "" + showCommentLink.render() + "" var commentDiv = "
" var nameLink = "" + this.name + "" - var html = nameLink + "
" + certified + " " + published + " " + var html = nameLink + infoHashTextArea + "
" + certified + " " + published + " " html += "
" html += "
" + commentDiv