Commit 4c225dbb authored by Bady's avatar Bady
Browse files

Add function to delete leaf data from frontend

parent a615f5cc
......@@ -552,6 +552,15 @@
}
}
socket.on('delete text', (leafid) => {
activeLeaf = document.getElementById(leafid);
activeLeaf.classList.remove("leaf-active");
activeLeaf.classList.add("leaf-inactive");
activeLeaf.removeEventListener("click", popupLeaf, false);
let knowledgeId = leafid.replace("path", "knowledge");
document.getElementById(knowledgeId).innerHTML = "";
});
// @license-end
</script>
</body>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment