Add message detail view
This commit is contained in:
parent
368cd2f79a
commit
fd30dc6f1a
6 changed files with 182 additions and 9 deletions
|
@ -91,9 +91,13 @@
|
|||
|
||||
this.listenTo(this.model, 'change', this.render); // auto update
|
||||
this.listenTo(this.model, 'destroy', this.remove); // auto update
|
||||
|
||||
},
|
||||
|
||||
events: {
|
||||
'click .timestamp': 'select'
|
||||
},
|
||||
select: function() {
|
||||
this.$el.trigger('select', {message: this.model});
|
||||
},
|
||||
render: function() {
|
||||
this.view.render();
|
||||
return this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue