diff options
-rw-r--r-- | static/chat.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/static/chat.js b/static/chat.js index 0b5d1c9..47cf6d3 100644 --- a/static/chat.js +++ b/static/chat.js @@ -23,7 +23,6 @@ function addBuddy(nick) { if(!found) { var col = randomColor(); buddyColors[nick] = col; - console.log(col); $("#buddies").append($("<li/>").css("color", col).text(nick)); } } @@ -54,7 +53,7 @@ function chatlogWriter(event) { break; } - var elemNick = $("<span/>").addClass("nick").prop("style", "color: " + buddyColors[data.user]).text(data.user); + var elemNick = $("<span/>").addClass("nick").css("color", buddyColors[data.user]).text(data.user); var elemText = $("<span/>").addClass("msg").text(msgtext); var logentry = $("<li/>").addClass(data.type).append(elemNick).append(elemText); $("#chatlog").append(logentry); |