projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
forced bold flag to user_decorator instead of place bold tag directly into the chat
[brisk.git]
/
web
/
commons.js
diff --git
a/web/commons.js
b/web/commons.js
index
ec1b88a
..
77be887
100644
(file)
--- a/
web/commons.js
+++ b/
web/commons.js
@@
-796,8
+796,8
@@
function chatt_sub(dt,data,str)
var name;
var flags;
var isauth;
var name;
var flags;
var isauth;
-
- name = user_decorator(
data)
+ var bolder = [ (data[0] | 1), data[1] ];
+ name = user_decorator(
bolder);
if ($("txt").scrollTop + parseInt(getStyle($("txt"),"height", "height")) - $("txt").scrollHeight >= 0)
must_scroll = true;
if ($("txt").scrollTop + parseInt(getStyle($("txt"),"height", "height")) - $("txt").scrollHeight >= 0)
must_scroll = true;
@@
-809,11
+809,11
@@
function chatt_sub(dt,data,str)
chatt_lines[i] = chatt_lines[i+1];
$("txt").innerHTML += chatt_lines[i];
}
chatt_lines[i] = chatt_lines[i+1];
$("txt").innerHTML += chatt_lines[i];
}
- chatt_lines[i] = dt+name+str+ "<br>";
+ chatt_lines[i] = dt+name+
": "+
str+ "<br>";
$("txt").innerHTML += chatt_lines[i];
}
else {
$("txt").innerHTML += chatt_lines[i];
}
else {
- chatt_lines[chatt_lines_n] = dt+
"<b>"+name+"</b>
"+str+ "<br>";
+ chatt_lines[chatt_lines_n] = dt+
name+":
"+str+ "<br>";
$("txt").innerHTML += chatt_lines[chatt_lines_n];
chatt_lines_n++;
}
$("txt").innerHTML += chatt_lines[chatt_lines_n];
chatt_lines_n++;
}