Apply custom chrome to conversation windows

This commit is contained in:
lilia
2015-05-21 14:35:44 -07:00
parent 95f8e3921c
commit 39d11d8eb3
7 changed files with 17 additions and 11 deletions

View File

@@ -26,7 +26,7 @@
render_attributes: function() {
return { group: this.model.get('type') === 'group' };
},
initialize: function() {
initialize: function(options) {
this.listenTo(this.model, 'destroy', this.stopListening);
this.render();
@@ -41,6 +41,10 @@
this.$('.discussion-container').append(this.view.el);
this.view.render();
new Whisper.WindowControlsView({
appWindow: options.appWindow
}).$el.appendTo(this.$('#header'));
setTimeout(function() {
this.view.scrollToBottom();
}.bind(this), 10);