77caa63321
Typically, a view can specify its templateName and then use the default render method on Whisper.View, except in some special cases like message view or message detail where other operations are performed during render. // FREEBIE
27 lines
761 B
JavaScript
27 lines
761 B
JavaScript
/*
|
|
* vim: ts=4:sw=4:expandtab
|
|
*/
|
|
(function () {
|
|
'use strict';
|
|
window.Whisper = window.Whisper || {};
|
|
|
|
Whisper.GroupMemberList = Whisper.View.extend({
|
|
className: 'group-member-list',
|
|
templateName: 'group-member-list',
|
|
initialize: function() {
|
|
this.render();
|
|
this.member_list_view = new Whisper.ContactListView({
|
|
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');
|
|
},
|
|
});
|
|
})();
|