Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/view/pane/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -831,11 +831,13 @@ Candy.View.Pane = (function(self, $) {
getMenuLinks: function(roomJid, user, elem) {
var menulinks, id;

var room = Candy.Core.getRoom(roomJid);

var evtData = {
'roomJid' : roomJid,
'room' : room,
'user' : user,
'elem': elem,
'menulinks': this.initialMenuLinks(elem)
'menulinks': this.initialMenuLinks()
};

/** Event: candy:view.roster.context-menu
Expand All @@ -845,9 +847,10 @@ Candy.View.Pane = (function(self, $) {
* key "menulinks" containing the menulink object.
*
* Parameters:
* (String) roomJid - Room on which the menu should be displayed
* (Candy.Core.Chatroom) room - Room on which the menu should be displayed
* (Candy.Core.ChatUser) user - User
* (jQuery.Element) elem - Parent element of the context menu
* (Object) menulinks - object containing initial menulinks
*/
$(Candy).triggerHandler('candy:view.roster.context-menu', evtData);

Expand Down