diff --git a/webui/src/main/js/files.js b/webui/src/main/js/files.js index 8ed8c1e2..98c47a2f 100644 --- a/webui/src/main/js/files.js +++ b/webui/src/main/js/files.js @@ -15,8 +15,14 @@ class Node { updateDiv() { var div = document.getElementById(this.nodeId) var unshareLink = "" + _t("Unshare") + "" + if (this == root) + unshareLink = "" var commentLink = "" + _t("Comment") + ""; + if (this == root) + commentLink = "" var certifyLink = "" + _t("Certify") + "" + if (this == root) + certifyLink = "" if (this.leaf) { var certified = "" if (this.certified == "true") @@ -160,6 +166,8 @@ function unshare(nodeId) { xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { var parent = node.parent + if (parent == null) + parent = root collapse(parent.nodeId) expand(parent.nodeId) }