Added blinking to only when chat messages sent

This commit is contained in:
Kasper Rynning-Tønnesen
2016-04-19 21:25:15 +02:00
parent e21d749795
commit 5c2b421585
3 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -38,7 +38,7 @@ var Chat = {
{
//$("#chat-btn").css("color", "grey");
if(!blink_interval_exists && inp.indexOf("changed name to") > -1)
if(!blink_interval_exists && inp.indexOf("changed name to") < 0)
{
$("#favicon").attr("href", "static/images/highlogo.png");
blink_interval_exists = true;
@@ -73,7 +73,7 @@ var Chat = {
{
if(data[1].indexOf(":") >= 0){
//$("#chat-btn").css("color", "grey");
if(!blink_interval_exists && data.indexOf("changed name to") > -1)
if(!blink_interval_exists && data.indexOf("changed name to") < 0)
{
$("#favicon").attr("href", "static/images/highlogo.png");
blink_interval_exists = true;