Commit b8774510 authored by Stuart John Watson's avatar Stuart John Watson

Online/Offline colouring back

parent 82599dc0
......@@ -140,10 +140,15 @@
console.warn("failed to find target",key,"under",domain);
return;
}
if (value == null){
if (key == "_online"){
if (value){
target.css("color","green").text("Online")
} else {
target.css("color","red").text("Offline")
}
} else if (value == null){
target.empty();
}
else if (value instanceof Array){
} else if (value instanceof Array){
target.empty();
for(var i=0;i<value.length;i++){
$("<li>").text(value[i]).appendTo(target);
......
Markdown is supported
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