diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-01-10 15:51:33 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-01-10 15:51:33 +0100 |
commit | d935b195a2246fa24d35df7c6fc354ae628a6777 (patch) | |
tree | c739e709ad3898df094d6779e50eaefa4f9cf82c /proto.js | |
parent | 93415d809989afc341472ea598579c924dc1e745 (diff) |
Added attributes to nodes as well as messages for manipulating and transporting them. Switched debug interface to hugin.
Diffstat (limited to 'proto.js')
-rw-r--r-- | proto.js | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -208,13 +208,15 @@ try { } } else if(cmd == "update") { - var title = msg[3]; - //var task = document.getElementById(createId(observeid, id)); - var txtdiv = document.getElementById(createId(observeid, id) + "_txt"); - txtdiv.removeChild(txtdiv.firstChild); - - var txt = document.createTextNode(title); - txtdiv.appendChild(txt); + var name = msg[3]; + var value = msg[4]; + if(name == "title") { + var txtdiv = document.getElementById(createId(observeid, id) + "_txt"); + txtdiv.removeChild(txtdiv.firstChild); + + var txt = document.createTextNode(value); + txtdiv.appendChild(txt); + } } f++; } |