|
@@ -19,6 +19,7 @@
|
|
"tpl!chatroom_nickname_form",
|
|
"tpl!chatroom_nickname_form",
|
|
"tpl!chatroom_password_form",
|
|
"tpl!chatroom_password_form",
|
|
"tpl!chatroom_sidebar",
|
|
"tpl!chatroom_sidebar",
|
|
|
|
+ "tpl!chatroom_toolbar",
|
|
"tpl!chatrooms_tab",
|
|
"tpl!chatrooms_tab",
|
|
"tpl!info",
|
|
"tpl!info",
|
|
"tpl!occupant",
|
|
"tpl!occupant",
|
|
@@ -37,6 +38,7 @@
|
|
tpl_chatroom_nickname_form,
|
|
tpl_chatroom_nickname_form,
|
|
tpl_chatroom_password_form,
|
|
tpl_chatroom_password_form,
|
|
tpl_chatroom_sidebar,
|
|
tpl_chatroom_sidebar,
|
|
|
|
+ tpl_chatroom_toolbar,
|
|
tpl_chatrooms_tab,
|
|
tpl_chatrooms_tab,
|
|
tpl_info,
|
|
tpl_info,
|
|
tpl_occupant,
|
|
tpl_occupant,
|
|
@@ -215,7 +217,10 @@
|
|
muc_domain: undefined,
|
|
muc_domain: undefined,
|
|
muc_history_max_stanzas: undefined,
|
|
muc_history_max_stanzas: undefined,
|
|
muc_instant_rooms: true,
|
|
muc_instant_rooms: true,
|
|
- muc_nickname_from_jid: false
|
|
|
|
|
|
+ muc_nickname_from_jid: false,
|
|
|
|
+ visible_toolbar_buttons: {
|
|
|
|
+ 'toggle_occupants': true
|
|
|
|
+ },
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -304,13 +309,23 @@
|
|
'label_message': __('Message')
|
|
'label_message': __('Message')
|
|
}))
|
|
}))
|
|
.append(this.occupantsview.render().$el);
|
|
.append(this.occupantsview.render().$el);
|
|
- this.renderToolbar();
|
|
|
|
|
|
+ this.renderToolbar(tpl_chatroom_toolbar);
|
|
this.$content = this.$el.find('.chat-content');
|
|
this.$content = this.$el.find('.chat-content');
|
|
}
|
|
}
|
|
this.toggleOccupants(null, true);
|
|
this.toggleOccupants(null, true);
|
|
return this;
|
|
return this;
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ getToolbarOptions: function () {
|
|
|
|
+ return _.extend(
|
|
|
|
+ converse.ChatBoxView.prototype.getToolbarOptions.apply(this, arguments),
|
|
|
|
+ {
|
|
|
|
+ label_hide_occupants: __('Hide the list of occupants'),
|
|
|
|
+ show_occupants_toggle: this.is_chatroom && converse.visible_toolbar_buttons.toggle_occupants
|
|
|
|
+ }
|
|
|
|
+ );
|
|
|
|
+ },
|
|
|
|
+
|
|
close: function (ev) {
|
|
close: function (ev) {
|
|
this.leave();
|
|
this.leave();
|
|
converse.ChatBoxView.prototype.close.apply(this, arguments);
|
|
converse.ChatBoxView.prototype.close.apply(this, arguments);
|