Fixed naming

This commit is contained in:
Kasper Rynning-Tønnesen
2015-05-13 14:26:27 +02:00
parent ceb84808ea
commit 40bce0792d
2 changed files with 4 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ socket.on("chat.all", function(inp)
unseen = true;
}
var color = intToARGB(hashCode(data.substring(0,8))).substring(0,6);
$("#chatall").append("<li title='"+inp[1]+"'><span style='color:"+color+";'>"+data.substring(0,8)+"</span></li>");
$("#chatall").append("<li title='"+inp[1]+"'><span style='color:"+color+";'>"+data.substring(0,data.indexOf(": "))+"</span></li>");
var in_text = document.createTextNode(data.substring(8));
$("#chatall li:last")[0].appendChild(in_text);
document.getElementById("chatall").scrollTop = document.getElementById("chatall").scrollHeight