From f27099159592c9de87db56c1aab0ae54102a083d Mon Sep 17 00:00:00 2001 From: JC Brand Date: Thu, 21 Jun 2012 22:03:29 +0200 Subject: [PATCH] Restore user-details-toggle click event handler --- collective.xmpp.chat.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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,