mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-05 05:25:49 +01:00
chain
This commit is contained in:
@@ -200,15 +200,13 @@ define(['taskbar', 'string'], function(taskbar, S) {
|
||||
}
|
||||
|
||||
function addSendHandler(chatModal) {
|
||||
chatModal.find('#chat-message-input').off('keypress');
|
||||
chatModal.find('#chat-message-input').on('keypress', function(e) {
|
||||
chatModal.find('#chat-message-input').off('keypress').on('keypress', function(e) {
|
||||
if(e.which === 13) {
|
||||
sendMessage(chatModal);
|
||||
}
|
||||
});
|
||||
|
||||
chatModal.find('#chat-message-send-btn').off('click');
|
||||
chatModal.find('#chat-message-send-btn').on('click', function(e){
|
||||
chatModal.find('#chat-message-send-btn').off('click').on('click', function(e){
|
||||
sendMessage(chatModal);
|
||||
return false;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user