Get rid of Layout global
Instead, trigger and listen for events on the conversation collection object.
This commit is contained in:
parent
a835887459
commit
d1c5b6da7a
4 changed files with 9 additions and 5 deletions
|
@ -44,6 +44,11 @@
|
|||
}.bind(this));
|
||||
}.bind(this));
|
||||
|
||||
this.conversations.on('selected', function(view) {
|
||||
$('.conversation').hide().trigger('close'); // detach any existing conversation views
|
||||
this.setContent(view.$el.show());
|
||||
view.render();
|
||||
}, this);
|
||||
},
|
||||
events: {
|
||||
'click #new-message': 'new_message',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue