color text in red for public chat (see #73)

This commit is contained in:
Stefan Breunig 2013-03-08 09:14:41 +01:00
parent 47d6a3e886
commit 94190bd900

View File

@ -408,6 +408,7 @@ window.chat.chooser = function(event) {
var tt = t.text(); var tt = t.text();
var mark = $('#chatinput mark'); var mark = $('#chatinput mark');
var input = $('#chatinput input');
$('#chatcontrols .active').removeClass('active'); $('#chatcontrols .active').removeClass('active');
t.addClass('active'); t.addClass('active');
@ -418,11 +419,13 @@ window.chat.chooser = function(event) {
switch(tt) { switch(tt) {
case 'faction': case 'faction':
input.css('color', '');
mark.css('color', ''); mark.css('color', '');
mark.text('tell faction:'); mark.text('tell faction:');
break; break;
case 'public': case 'public':
input.css('cssText', 'color: red !important');
mark.css('cssText', 'color: red !important'); mark.css('cssText', 'color: red !important');
mark.text('broadcast:'); mark.text('broadcast:');
break; break;
@ -430,6 +433,7 @@ window.chat.chooser = function(event) {
case 'compact': case 'compact':
case 'full': case 'full':
mark.css('cssText', 'color: #bbb !important'); mark.css('cssText', 'color: #bbb !important');
input.css('cssText', 'color: #bbb !important');
mark.text('tell Jarvis:'); mark.text('tell Jarvis:');
break; break;