From: Darren Date: Sat, 29 Nov 2014 15:49:39 +0000 (+0000) Subject: Include user object in usermenu:created plugin events X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8dfd6407d39783b4fb86fe4b1c31117a20cf1c52;p=KiwiIRC.git Include user object in usermenu:created plugin events --- 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();