mirror of
https://github.com/moparisthebest/kaiwa
synced 2024-11-15 14:04:59 -05:00
Re-add file with correct capitalization
This commit is contained in:
parent
4c2323d3fe
commit
a4cc9408c5
29
clientapp/views/mucRosterItem.js
Normal file
29
clientapp/views/mucRosterItem.js
Normal file
@ -0,0 +1,29 @@
|
||||
/*global $, app, me*/
|
||||
"use strict";
|
||||
|
||||
var _ = require('underscore');
|
||||
var HumanView = require('human-view');
|
||||
var templates = require('../templates');
|
||||
|
||||
|
||||
module.exports = HumanView.extend({
|
||||
template: templates.includes.mucRosterItem,
|
||||
events: {
|
||||
'click': 'handleClick'
|
||||
},
|
||||
classBindings: {
|
||||
show: '',
|
||||
chatState: '',
|
||||
idle: ''
|
||||
},
|
||||
textBindings: {
|
||||
mucDisplayName: '.name'
|
||||
},
|
||||
render: function () {
|
||||
this.renderAndBind({contact: this.model});
|
||||
return this;
|
||||
},
|
||||
handleClick: function (e) {
|
||||
this.parent.trigger('rosterItemClicked', this.model.mucDisplayName);
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue
Block a user