Include user object in usermenu:created plugin events
authorDarren <darren@darrenwhitlen.com>
Sat, 29 Nov 2014 15:49:39 +0000 (15:49 +0000)
committerDarren <darren@darrenwhitlen.com>
Sat, 29 Nov 2014 15:49:39 +0000 (15:49 +0000)
client/src/views/channel.js
client/src/views/memberlist.js

index 4c9161709fc7e6a82e08d004051c267171992a15..b8b56c33b9a04a1bd8a021b9f32875fb6516d19c 100644 (file)
@@ -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();
 
index 742446721d46a2acb6da05b257b6a17dd28dc8ff..ed5eab99686c1b4f41725aa2811090358f2819ea 100644 (file)
@@ -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();