indentation, and dead code removal

This commit is contained in:
Jon Atkins 2015-03-04 01:03:55 +00:00
parent 22ef6a62a1
commit 55529c938e

View File

@ -458,12 +458,11 @@ window.chat.renderMsg = function(msg, nick, time, team, msgToPlayer, systemNarro
var color = COLORS[team]; var color = COLORS[team];
if (nick === window.PLAYER.nickname) color = '#fd6'; //highlight things said/done by the player in a unique colour (similar to @player mentions from others in the chat text itself) if (nick === window.PLAYER.nickname) color = '#fd6'; //highlight things said/done by the player in a unique colour (similar to @player mentions from others in the chat text itself)
var s = 'style="cursor:pointer; color:'+color+'"'; var s = 'style="cursor:pointer; color:'+color+'"';
var title = nick.length >= 8 ? 'title="'+nick+'" class="help"' : '';
var i = ['<span class="invisep">&lt;</span>', '<span class="invisep">&gt;</span>']; var i = ['<span class="invisep">&lt;</span>', '<span class="invisep">&gt;</span>'];
return '<tr><td>'+t+'</td><td>'+i[0]+'<mark class="nickname" ' + s + '>'+ nick+'</mark>'+i[1]+'</td><td>'+msg+'</td></tr>'; return '<tr><td>'+t+'</td><td>'+i[0]+'<mark class="nickname" ' + s + '>'+ nick+'</mark>'+i[1]+'</td><td>'+msg+'</td></tr>';
} }
window.chat.addNickname= function(nick){ window.chat.addNickname= function(nick) {
var c = document.getElementById("chattext"); var c = document.getElementById("chattext");
c.value = [c.value.trim(), nick].join(" ").trim() + " "; c.value = [c.value.trim(), nick].join(" ").trim() + " ";
c.focus() c.focus()