|
@@ -499,6 +499,7 @@
|
|
'click .send-button': 'onFormSubmitted',
|
|
'click .send-button': 'onFormSubmitted',
|
|
'click .toggle-call': 'toggleCall',
|
|
'click .toggle-call': 'toggleCall',
|
|
'click .toggle-occupants': 'toggleOccupants',
|
|
'click .toggle-occupants': 'toggleOccupants',
|
|
|
|
+ 'click .hide-occupants': 'hideOccupants',
|
|
'click .toggle-smiley ul.emoji-picker li': 'insertEmoji',
|
|
'click .toggle-smiley ul.emoji-picker li': 'insertEmoji',
|
|
'click .toggle-smiley': 'toggleEmojiMenu',
|
|
'click .toggle-smiley': 'toggleEmojiMenu',
|
|
'click .upload-file': 'toggleFileUpload',
|
|
'click .upload-file': 'toggleFileUpload',
|
|
@@ -710,6 +711,19 @@
|
|
this.occupantsview.setOccupantsHeight();
|
|
this.occupantsview.setOccupantsHeight();
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ hideOccupants (ev, preserve_state) {
|
|
|
|
+ /* Show or hide the right sidebar containing the chat
|
|
|
|
+ * occupants (and the invite widget).
|
|
|
|
+ */
|
|
|
|
+ if (ev) {
|
|
|
|
+ ev.preventDefault();
|
|
|
|
+ ev.stopPropagation();
|
|
|
|
+ }
|
|
|
|
+ this.model.save({'hidden_occupants': true});
|
|
|
|
+ this.setOccupantsVisibility();
|
|
|
|
+ this.scrollDown();
|
|
|
|
+ },
|
|
|
|
+
|
|
toggleOccupants (ev, preserve_state) {
|
|
toggleOccupants (ev, preserve_state) {
|
|
/* Show or hide the right sidebar containing the chat
|
|
/* Show or hide the right sidebar containing the chat
|
|
* occupants (and the invite widget).
|
|
* occupants (and the invite widget).
|