From efcfcc246458c7592395d2971ed7141c224ecf14 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Sun, 4 Dec 2011 16:11:37 +0100 Subject: [PATCH] forced bold flag to user_decorator instead of place bold tag directly into the chat --- web/commons.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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++; } -- 2.17.1