From: Matteo Nastasi (mop) Date: Sun, 4 Dec 2011 15:11:37 +0000 (+0100) Subject: forced bold flag to user_decorator instead of place bold tag directly into the chat X-Git-Tag: pre-sac~11 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=efcfcc246458c7592395d2971ed7141c224ecf14;p=brisk.git forced bold flag to user_decorator instead of place bold tag directly into the chat --- diff --git a/web/commons.js b/web/commons.js index ec1b88a..77be887 100644 --- a/web/commons.js +++ b/web/commons.js @@ -796,8 +796,8 @@ function chatt_sub(dt,data,str) 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; @@ -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] = dt+name+str+ "
"; + chatt_lines[i] = dt+name+": "+str+ "
"; $("txt").innerHTML += chatt_lines[i]; } else { - chatt_lines[chatt_lines_n] = dt+""+name+" "+str+ "
"; + chatt_lines[chatt_lines_n] = dt+name+": "+str+ "
"; $("txt").innerHTML += chatt_lines[chatt_lines_n]; chatt_lines_n++; }