From 0d6fbabb3e96e664ffde21b353c4458bdb03e676 Mon Sep 17 00:00:00 2001 From: lilia Date: Wed, 28 Jan 2015 02:20:43 -1000 Subject: [PATCH] Trigger a checkbox event from conversation list items --- js/views/conversation_list_item_view.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/views/conversation_list_item_view.js b/js/views/conversation_list_item_view.js index ba53d845fa..72db89754a 100644 --- a/js/views/conversation_list_item_view.js +++ b/js/views/conversation_list_item_view.js @@ -26,7 +26,7 @@ var Whisper = Whisper || {}; events: { 'click': 'open', - 'click .checkbox': 'stopPropagation' + 'click .checkbox': 'checkbox' }, initialize: function() { this.template = $('#contact').html(); @@ -41,8 +41,9 @@ var Whisper = Whisper || {}; this.$el.trigger('open', {modelId: this.model.id}); }, - stopPropagation: function(e) { + checkbox: function(e) { e.stopPropagation(); + this.$el.trigger('checkbox', {modelId: this.model.id}); }, render: function() {