Commit 2ea20b31 authored by JC Brand's avatar JC Brand

Add close button for the control box.

parent e4a0272e
...@@ -157,7 +157,6 @@ xmppchat.UI = (function (xmppUI, $, console) { ...@@ -157,7 +157,6 @@ xmppchat.UI = (function (xmppUI, $, console) {
var $form = $('<form class="sendXMPPMessage" action="" method="post">') var $form = $('<form class="sendXMPPMessage" action="" method="post">')
.append( .append(
$('<textarea type="text" ' + $('<textarea type="text" ' +
'name="message" '+
'class="chat-textarea" ' + 'class="chat-textarea" ' +
'placeholder="Personal message"/>').attr('data-recipient', bare_jid)); 'placeholder="Personal message"/>').attr('data-recipient', bare_jid));
$chat.append($head).append($content).append($form); $chat.append($head).append($content).append($form);
...@@ -523,6 +522,10 @@ $(document).ready(function () { ...@@ -523,6 +522,10 @@ $(document).ready(function () {
xmppchat.UI.closeChat(jid); xmppchat.UI.closeChat(jid);
}); });
$('a.close-controlbox-button').live('click', function (ev) {
xmppchat.UI.closeChat('online-users-container');
});
$('ul.tabs').tabs('div.panes > div'); $('ul.tabs').tabs('div.panes > div');
$('select#select-xmpp-status').bind('change', function (ev) { $('select#select-xmpp-status').bind('change', function (ev) {
var jid = xmppchat.connection.jid, var jid = xmppchat.connection.jid,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment