Cable-Desktop/js/views/group_member_list_view.js

25 lines
702 B
JavaScript
Raw Normal View History

/*
* 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 panel',
templateName: 'group-member-list',
2015-08-04 21:15:37 +02:00
initialize: function() {
this.render();
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.$('.container').append(this.member_list_view.el);
2015-08-04 21:15:37 +02:00
},
2015-12-26 02:03:32 +01:00
render_attributes: {
members: i18n('members')
}
2015-08-04 21:15:37 +02:00
});
})();