|
|
|
@ -14,20 +14,19 @@
|
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
var Whisper = Whisper || {};
|
|
|
|
|
|
|
|
|
|
(function () {
|
|
|
|
|
'use strict';
|
|
|
|
|
var Whisper = Whisper || {};
|
|
|
|
|
|
|
|
|
|
// list of conversations, showing user/group and last message sent
|
|
|
|
|
Whisper.ConversationListItemView = Whisper.View.extend({
|
|
|
|
|
tagName: 'div',
|
|
|
|
|
className: 'contact',
|
|
|
|
|
|
|
|
|
|
template: $('#contact').html(),
|
|
|
|
|
events: {
|
|
|
|
|
'click': 'select'
|
|
|
|
|
},
|
|
|
|
|
template: $('#contact').html(),
|
|
|
|
|
initialize: function() {
|
|
|
|
|
this.listenTo(this.model, 'change', this.render); // auto update
|
|
|
|
|
this.listenTo(this.model, 'destroy', this.remove); // auto update
|
|
|
|
|