|
|
|
@ -179,17 +179,8 @@ define('chat', ['components', 'taskbar', 'string', 'sounds', 'forum/chats', 'tra
|
|
|
|
|
chatModal.css('zIndex', 100);
|
|
|
|
|
chatModal.appendTo($('body'));
|
|
|
|
|
module.center(chatModal);
|
|
|
|
|
chatModal.draggable({
|
|
|
|
|
start:function() {
|
|
|
|
|
module.bringModalToTop(chatModal);
|
|
|
|
|
},
|
|
|
|
|
stop:function() {
|
|
|
|
|
chatModal.find('#chat-message-input').focus();
|
|
|
|
|
},
|
|
|
|
|
distance: 10,
|
|
|
|
|
handle: '.modal-header'
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
app.loadJQueryUI(function() {
|
|
|
|
|
chatModal.find('.modal-content').resizable({
|
|
|
|
|
minHeight: 250,
|
|
|
|
|
minWidth: 400
|
|
|
|
@ -203,6 +194,18 @@ define('chat', ['components', 'taskbar', 'string', 'sounds', 'forum/chats', 'tra
|
|
|
|
|
chatModal.find('#chat-content').css('height', module.calculateChatListHeight(chatModal));
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
chatModal.draggable({
|
|
|
|
|
start:function() {
|
|
|
|
|
module.bringModalToTop(chatModal);
|
|
|
|
|
},
|
|
|
|
|
stop:function() {
|
|
|
|
|
chatModal.find('#chat-message-input').focus();
|
|
|
|
|
},
|
|
|
|
|
distance: 10,
|
|
|
|
|
handle: '.modal-header'
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
chatModal.find('#chat-with-name').html(username);
|
|
|
|
|
|
|
|
|
|
chatModal.find('#chat-close-btn').on('click', function() {
|
|
|
|
|