projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
customizable support icon finalized
[brisk.git]
/
web
/
room.js
diff --git
a/web/room.js
b/web/room.js
index
82e6fcc
..
f4bb465
100644
(file)
--- a/
web/room.js
+++ b/
web/room.js
@@
-29,7
+29,7
@@
*/
*/
-function state_add(flags)
+function state_add(flags
, comp
)
{
var content = "", supercont = "";
var st, superst, name = "", supername = "", supersfx = "";
{
var content = "", supercont = "";
var st, superst, name = "", supername = "", supersfx = "";
@@
-113,14
+113,19
@@
function state_add(flags)
switch (superst) {
case 0x20000:
switch (superst) {
case 0x20000:
- supername = "superuser"+supersfx+".png";
+ if (comp != null) {
+ supername = "suprend.php?comp="+comp+"&sfx="+supersfx;
+ }
+ else {
+ supername = "img/superuser"+supersfx+".png";
+ }
supertit = (g_lang == 'en' ? "Brisk Supporter" : "Brisk Supporter");
break;
}
}
if (supername != "") {
supertit = (g_lang == 'en' ? "Brisk Supporter" : "Brisk Supporter");
break;
}
}
if (supername != "") {
- content += ' <img title="'+supertit+'" class="inline" src="
img/
'+supername+'">';
+ content += ' <img title="'+supertit+'" class="inline" src="'+supername+'">';
}
if (name != "") {
}
if (name != "") {