double click the chat header to maximize

v1.18.x
psychobunny 11 years ago
parent c692f7e8fe
commit da0eff6a4e

@ -205,10 +205,13 @@ define('chat', ['taskbar', 'string', 'sounds', 'forum/chats'], function(taskbar,
module.close(chatModal);
});
chatModal.find('button[data-action="maximize"]').on('click', function() {
function gotoChats() {
ajaxify.go('chats/' + utils.slugify(username));
module.close(chatModal);
});
}
chatModal.find('.modal-header').on('dblclick', gotoChats);
chatModal.find('button[data-action="maximize"]').on('click', gotoChats);
chatModal.on('click', function(e) {
module.bringModalToTop(chatModal);

Loading…
Cancel
Save