Commit 85688d18 authored by JC Brand's avatar JC Brand

Add missing event registration for the ChatBoxView

parent 29bc4215
......@@ -173,18 +173,19 @@ converse.plugins.add('converse-chatview', {
events: {
'change input.fileupload': 'onFileSelection',
'click .chatbox-navback': 'showControlBox',
'click .chatbox-title': 'minimize',
'click .new-msgs-indicator': 'viewUnreadMessages',
'click .send-button': 'onFormSubmitted',
'click .toggle-call': 'toggleCall',
'click .toggle-clear': 'clearMessages',
'click .toggle-compose-spoiler': 'toggleComposeSpoilerMessage',
'click .upload-file': 'toggleFileUpload',
'dragover .chat-textarea': 'onDragOver',
'drop .chat-textarea': 'onDrop',
'input .chat-textarea': 'inputChanged',
'keydown .chat-textarea': 'onKeyDown',
'keyup .chat-textarea': 'onKeyUp',
'paste .chat-textarea': 'onPaste',
'dragover .chat-textarea': 'onDragOver',
'drop .chat-textarea': 'onDrop',
},
async initialize () {
......
......@@ -437,6 +437,7 @@ converse.plugins.add('converse-muc-views', {
events: {
'change input.fileupload': 'onFileSelection',
'click .chatbox-navback': 'showControlBox',
'click .chatbox-title': 'minimize',
'click .hide-occupants': 'hideOccupants',
'click .new-msgs-indicator': 'viewUnreadMessages',
// Arrow functions don't work here because you can't bind a different `this` param to them.
......@@ -453,7 +454,6 @@ converse.plugins.add('converse-muc-views', {
'mousedown .dragresize-occupants-left': 'onStartResizeOccupants',
'paste .chat-textarea': 'onPaste',
'submit .muc-nickname-form': 'submitNickname',
'click .converse-overlayed .chatbox-title': 'minimize'
},
async initialize () {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment