removed 'whysupport' action
[brisk.git] / web / commons.js
index c317957..cefb6c0 100644 (file)
@@ -430,11 +430,6 @@ function act_roadmap()
     send_mesg("roadmap");
 }
 
-function act_whysupport()
-{
-    send_mesg("whysupport");
-}
-
 function act_lascio()
 {
     send_mesg("lascio");
@@ -1038,17 +1033,19 @@ function user_decorator(user, is_real)
 
     for (i = 0 ; i < 4 ; i++) {
         if (flags & (1 << i)) {
-            cl += sp + "au" + i;
+            cl += sp + "au" + i + (is_real ? "" : "_off");
             sp = " ";
         }
     }
 
-    if (flags != 0)
+    if (flags != 0) {
         name = "<span class='" + cl + "'><span class='" +
-        (is_real && (flags & 0xfffffe && (flags & 0x01 == 0)) ? "id_usr" : "") +
-        "'>"+user[1]+"</span></span>";
-    else
+        (is_real && (flags & 0xfffffe && ((flags & 0x01) == 0)) ? "id_usr" : "") +
+        "'>" + user[1] + "</span></span>";
+    }
+    else {
         name = user[1];
+    }
 
     return (name);
 }