v1.18.x
Baris Soner Usakli 11 years ago
parent 0db6423c26
commit 324bec41c4

@ -200,15 +200,13 @@ define(['taskbar', 'string'], function(taskbar, S) {
} }
function addSendHandler(chatModal) { function addSendHandler(chatModal) {
chatModal.find('#chat-message-input').off('keypress'); chatModal.find('#chat-message-input').off('keypress').on('keypress', function(e) {
chatModal.find('#chat-message-input').on('keypress', function(e) {
if(e.which === 13) { if(e.which === 13) {
sendMessage(chatModal); sendMessage(chatModal);
} }
}); });
chatModal.find('#chat-message-send-btn').off('click'); chatModal.find('#chat-message-send-btn').off('click').on('click', function(e){
chatModal.find('#chat-message-send-btn').on('click', function(e){
sendMessage(chatModal); sendMessage(chatModal);
return false; return false;
}); });

Loading…
Cancel
Save