mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 00:45:47 +01:00
double click the chat header to maximize
This commit is contained in:
@@ -205,10 +205,13 @@ define('chat', ['taskbar', 'string', 'sounds', 'forum/chats'], function(taskbar,
|
|||||||
module.close(chatModal);
|
module.close(chatModal);
|
||||||
});
|
});
|
||||||
|
|
||||||
chatModal.find('button[data-action="maximize"]').on('click', function() {
|
function gotoChats() {
|
||||||
ajaxify.go('chats/' + utils.slugify(username));
|
ajaxify.go('chats/' + utils.slugify(username));
|
||||||
module.close(chatModal);
|
module.close(chatModal);
|
||||||
});
|
}
|
||||||
|
|
||||||
|
chatModal.find('.modal-header').on('dblclick', gotoChats);
|
||||||
|
chatModal.find('button[data-action="maximize"]').on('click', gotoChats);
|
||||||
|
|
||||||
chatModal.on('click', function(e) {
|
chatModal.on('click', function(e) {
|
||||||
module.bringModalToTop(chatModal);
|
module.bringModalToTop(chatModal);
|
||||||
|
|||||||
Reference in New Issue
Block a user