From 67ab36c1bb87196379153881afcd7e17aea421e2 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 14 Jun 2020 20:03:51 +0200 Subject: Make state toggle when clicked. --- src/ws/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ws/node.js') diff --git a/src/ws/node.js b/src/ws/node.js index 6e60b37..062f892 100644 --- a/src/ws/node.js +++ b/src/ws/node.js @@ -201,7 +201,7 @@ Node.prototype.create = function() this.state_element.setAttribute("onclick", "changeState(event)"); this.state_element.setAttribute("nodeid", this.id); this.state_element.setAttribute("class", "state"); - var txt_state = document.createTextNode(""); + var txt_state = document.createTextNode("todo"); this.state_element.appendChild(txt_state); this.data_element.appendChild(this.state_element); -- cgit v1.2.3