From 8dfd6407d39783b4fb86fe4b1c31117a20cf1c52 Mon Sep 17 00:00:00 2001 From: Darren Date: Sat, 29 Nov 2014 15:49:39 +0000 Subject: [PATCH] Include user object in usermenu:created plugin events --- client/src/views/channel.js | 2 +- client/src/views/memberlist.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/views/channel.js b/client/src/views/channel.js index 4c91617..b8b56c3 100644 --- a/client/src/views/channel.js +++ b/client/src/views/channel.js @@ -414,7 +414,7 @@ _kiwi.view.Channel = _kiwi.view.Panel.extend({ menubox.addItem('userbox', userbox.$el); menubox.showFooter(false); - _kiwi.global.events.emit('usermenu:created', {menu: menubox, userbox: userbox}) + _kiwi.global.events.emit('usermenu:created', {menu: menubox, userbox: userbox, user: member}) .then(_.bind(function() { menubox.show(); diff --git a/client/src/views/memberlist.js b/client/src/views/memberlist.js index 7424467..ed5eab9 100644 --- a/client/src/views/memberlist.js +++ b/client/src/views/memberlist.js @@ -60,7 +60,7 @@ _kiwi.view.MemberList = Backbone.View.extend({ menu.addItem('userbox', userbox.$el); menu.showFooter(false); - _kiwi.global.events.emit('usermenu:created', {menu: menu, userbox: userbox}) + _kiwi.global.events.emit('usermenu:created', {menu: menu, userbox: userbox, user: member}) .then(_.bind(function() { menu.show(); -- 2.25.1