diff --git a/public/src/modules/chat.js b/public/src/modules/chat.js index b1ec331c18..c874b330b1 100644 --- a/public/src/modules/chat.js +++ b/public/src/modules/chat.js @@ -131,7 +131,7 @@ define(['taskbar', 'string'], function(taskbar, S) { chatModal.find('#chat-with-name').html(username); - chatModal.find('.close').on('click', function(e) { + chatModal.find('#chat-close-btn').on('click', function(e) { clearInterval(chatModal.intervalId); chatModal.intervalId = 0; chatModal.remove(); diff --git a/public/templates/chat.tpl b/public/templates/chat.tpl index 51612add45..8cc01343d8 100644 --- a/public/templates/chat.tpl +++ b/public/templates/chat.tpl @@ -3,7 +3,7 @@