diff --git a/collective.xmpp.chat.js b/collective.xmpp.chat.js index 8edc6b75c..1735f5f3d 100644 --- a/collective.xmpp.chat.js +++ b/collective.xmpp.chat.js @@ -276,7 +276,7 @@ var xmppchat = (function ($, console) { that = this; jarnxmpp.Presence.getUserInfo(user_id, function (data) { - that.getChatbox(jid, function () { + that.getChatbox(jid, function ($chat) { var chat_content = $chat.find(".chat-content"), now = new Date(), time = now.toLocaleTimeString().substring(0,5); @@ -425,6 +425,13 @@ $(document).ready(function () { } }); + $('a.user-details-toggle').live('click', function (e) { + var $field = $('[name="message"]:input', $(this).parent()[0]), + jid = $field.attr('data-recipient'); + e.preventDefault(); + xmppchat.getChatbox(jid); + }); + $('ul.tabs').tabs('div.panes > div'); $('select#select-xmpp-status').bind('change', function (event) { var jid = jarnxmpp.connection.jid,