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', { ...@@ -173,18 +173,19 @@ converse.plugins.add('converse-chatview', {
events: { events: {
'change input.fileupload': 'onFileSelection', 'change input.fileupload': 'onFileSelection',
'click .chatbox-navback': 'showControlBox', 'click .chatbox-navback': 'showControlBox',
'click .chatbox-title': 'minimize',
'click .new-msgs-indicator': 'viewUnreadMessages', 'click .new-msgs-indicator': 'viewUnreadMessages',
'click .send-button': 'onFormSubmitted', 'click .send-button': 'onFormSubmitted',
'click .toggle-call': 'toggleCall', 'click .toggle-call': 'toggleCall',
'click .toggle-clear': 'clearMessages', 'click .toggle-clear': 'clearMessages',
'click .toggle-compose-spoiler': 'toggleComposeSpoilerMessage', 'click .toggle-compose-spoiler': 'toggleComposeSpoilerMessage',
'click .upload-file': 'toggleFileUpload', 'click .upload-file': 'toggleFileUpload',
'dragover .chat-textarea': 'onDragOver',
'drop .chat-textarea': 'onDrop',
'input .chat-textarea': 'inputChanged', 'input .chat-textarea': 'inputChanged',
'keydown .chat-textarea': 'onKeyDown', 'keydown .chat-textarea': 'onKeyDown',
'keyup .chat-textarea': 'onKeyUp', 'keyup .chat-textarea': 'onKeyUp',
'paste .chat-textarea': 'onPaste', 'paste .chat-textarea': 'onPaste',
'dragover .chat-textarea': 'onDragOver',
'drop .chat-textarea': 'onDrop',
}, },
async initialize () { async initialize () {
......
...@@ -437,6 +437,7 @@ converse.plugins.add('converse-muc-views', { ...@@ -437,6 +437,7 @@ converse.plugins.add('converse-muc-views', {
events: { events: {
'change input.fileupload': 'onFileSelection', 'change input.fileupload': 'onFileSelection',
'click .chatbox-navback': 'showControlBox', 'click .chatbox-navback': 'showControlBox',
'click .chatbox-title': 'minimize',
'click .hide-occupants': 'hideOccupants', 'click .hide-occupants': 'hideOccupants',
'click .new-msgs-indicator': 'viewUnreadMessages', 'click .new-msgs-indicator': 'viewUnreadMessages',
// Arrow functions don't work here because you can't bind a different `this` param to them. // 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', { ...@@ -453,7 +454,6 @@ converse.plugins.add('converse-muc-views', {
'mousedown .dragresize-occupants-left': 'onStartResizeOccupants', 'mousedown .dragresize-occupants-left': 'onStartResizeOccupants',
'paste .chat-textarea': 'onPaste', 'paste .chat-textarea': 'onPaste',
'submit .muc-nickname-form': 'submitNickname', 'submit .muc-nickname-form': 'submitNickname',
'click .converse-overlayed .chatbox-title': 'minimize'
}, },
async initialize () { 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