Add message detail view

This commit is contained in:
lilia 2015-02-23 13:17:50 -08:00
parent 368cd2f79a
commit fd30dc6f1a
6 changed files with 182 additions and 9 deletions

View file

@ -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;