Restore user-details-toggle click event handler
This commit is contained in:
parent
931be34f41
commit
f270991595
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user