Add nick highlighting
This commit is contained in:
parent
2f38c4cafc
commit
3f843e9c8c
|
@ -95,3 +95,7 @@
|
|||
.option button {
|
||||
margin-right: 15px;
|
||||
}
|
||||
|
||||
.nick-highlight {
|
||||
background-color: #ddffdd;
|
||||
}
|
||||
|
|
|
@ -116,6 +116,8 @@ function addUserDropdown(entry, name) {
|
|||
|
||||
function formatChatMessage(data) {
|
||||
var div = document.createElement('div');
|
||||
if(data.msg.indexOf(uname) != -1)
|
||||
$(div).addClass('nick-highlight');
|
||||
if(data.msgclass == "action") {
|
||||
var message = document.createElement('span');
|
||||
$(message).addClass('action');
|
||||
|
|
Loading…
Reference in a new issue