You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 21, 2024. It is now read-only.
pstadler edited this page Jan 29, 2012
·
3 revisions
Add / modify menu entries
// myplugin/candy.jsCandy.View.Event.Roster.onContextMenu=function(args){return{// add a new menu entry with key profile'profile': {requiredPermission: function(user,me){// don't show if it's myself// this will also disable the entry in the room's context menu (where moderators can change the subject)returnme.getNick()!==user.getNick();},'class' : 'profile','label' : 'Show Profile','callback' : function(e,roomJid,user){// open profile in new windowwindow.open('http://domain.tld/user/detail/'+user.getNick(),'');}}};};