Archived
1
0

use appendChild

This commit is contained in:
Jeff Becker
2016-04-30 16:14:47 -04:00
parent 2b28431568
commit 9d7eceb927
2 changed files with 4 additions and 4 deletions

View File

@@ -215,12 +215,12 @@ DynReply.prototype.setRoot = function(roothash) {
DynReply.prototype.showError = function(msg) {
console.log("error in dynreply: "+msg);
this._error.setAttribute("class", "error");
this._error.value = document.createTextNode(msg);
this._error.appendChild(document.createTextNode(msg));
}
DynReply.prototype.showMessage = function(msg) {
this._error.setAttribute("class", "message");
this._error.value = document.createTextNode(msg);
this._error.appendChild(document.createTextNode(msg));
var e = this._error;
setTimeout(function() {
// clear it