From a4cc9408c5fa18a3c823d42075a9476721c6598e Mon Sep 17 00:00:00 2001 From: Nils Werner Date: Fri, 10 Jul 2015 09:56:48 +0200 Subject: [PATCH] Re-add file with correct capitalization --- clientapp/views/mucRosterItem.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 clientapp/views/mucRosterItem.js diff --git a/clientapp/views/mucRosterItem.js b/clientapp/views/mucRosterItem.js new file mode 100644 index 0000000..bcfdad7 --- /dev/null +++ b/clientapp/views/mucRosterItem.js @@ -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); + } +});