Commit 775757f1 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Changed display of js error messages

parent 6a728d4a
......@@ -19,12 +19,20 @@ function displayMessage(m, /* optional */ elemid) {
color = 'green';
}
else if (m.type == 'info') {
color = '#aa6;';
//color = '#aa6;';
logDebug(m.message);
return;
}
if (typeof(elemid) == 'undefined') {
elemid = 'messages';
}
$(elemid).appendChild(DIV({'style':'color:'+color+';'},m.message));
var message = DIV({'style':'color:'+color+';'},m.message);
appendChildNodes(elemid, message);
callLater(2, function() {
removeElement(message);
//fade(message);
});
}
......
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