Avoid opening message-detail twice

Previously, clicking the timestamp on an error bubble would open two
message detail views.

// FREEBIE
This commit is contained in:
lilia 2015-10-26 17:00:21 -07:00
parent ec6898f1ab
commit cb93ad4cff

View file

@ -19,8 +19,9 @@
'click .timestamp': 'select',
'click .error': 'select'
},
select: function() {
select: function(e) {
this.$el.trigger('select', {message: this.model});
e.stopPropagation();
},
className: function() {
return ["entry", this.model.get('type')].join(' ');