From 992ca0a3517c10903219128d4479e8659ed3fa30 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 17 Dec 2015 11:56:28 +0200 Subject: [PATCH] fix taskbar icon --- public/src/modules/chat.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/public/src/modules/chat.js b/public/src/modules/chat.js index f6159e28e1..57d5811de2 100644 --- a/public/src/modules/chat.js +++ b/public/src/modules/chat.js @@ -214,8 +214,6 @@ define('chat', ['components', 'taskbar', 'string', 'sounds', 'forum/chats', 'tra }); }); - chatModal.find('#chat-with-name').html(data.username); - chatModal.find('#chat-close-btn').on('click', function() { module.close(chatModal); }); @@ -236,9 +234,7 @@ define('chat', ['components', 'taskbar', 'string', 'sounds', 'forum/chats', 'tra chatModal.on('click', function() { module.bringModalToTop(chatModal); - if (!dragged) { - //chatModal.find('#chat-message-input').focus(); - } else { + if (dragged) { dragged = false; } }); @@ -285,7 +281,7 @@ define('chat', ['components', 'taskbar', 'string', 'sounds', 'forum/chats', 'tra }); taskbar.push('chat', chatModal.attr('UUID'), { - title: data.username, + title: data.users.length ? data.users[0].username : '', roomId: data.roomId, icon: 'fa-comment', state: ''