summaryrefslogtreecommitdiff
path: root/proto.js
diff options
context:
space:
mode:
Diffstat (limited to 'proto.js')
-rw-r--r--proto.js16
1 files changed, 9 insertions, 7 deletions
diff --git a/proto.js b/proto.js
index 0630bbf..b382a75 100644
--- a/proto.js
+++ b/proto.js
@@ -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++;
}