2015-09-07 23:53:43 +02:00
|
|
|
/*
|
|
|
|
* vim: ts=4:sw=4:expandtab
|
2015-08-04 21:15:37 +02:00
|
|
|
*/
|
|
|
|
(function () {
|
|
|
|
'use strict';
|
|
|
|
window.Whisper = window.Whisper || {};
|
|
|
|
|
|
|
|
Whisper.GroupMemberList = Whisper.View.extend({
|
|
|
|
className: 'group-member-list',
|
|
|
|
template: $('#group-member-list').html(),
|
|
|
|
initialize: function() {
|
|
|
|
this.render();
|
2015-09-03 22:33:17 +02:00
|
|
|
this.member_list_view = new Whisper.ContactListView({
|
2015-08-04 21:15:37 +02:00
|
|
|
collection: this.model.contactCollection,
|
|
|
|
className: 'members'
|
|
|
|
});
|
|
|
|
this.member_list_view.render();
|
|
|
|
this.$('.scrollable').append(this.member_list_view.el);
|
|
|
|
},
|
|
|
|
events: {
|
|
|
|
'click .back': 'goBack',
|
|
|
|
},
|
|
|
|
goBack: function() {
|
|
|
|
this.trigger('back');
|
|
|
|
},
|
|
|
|
});
|
|
|
|
})();
|