Loading/minimizing chats from the taskbar



  • Not really sure where to put this, although it's not really a bug/issue

    public/src/modules/chat.js, line 264

    module.load = function(uuid) {
    	var chatModal = $('div[UUID="'+uuid+'"]');
    	chatModal.removeClass('hide');
    	checkOnlineStatus(chatModal);
    	taskbar.updateActive(uuid);
    	Chats.scrollToBottom(chatModal.find('#chat-content'));
    	module.center(chatModal);
    	module.bringModalToTop(chatModal);
    	socket.emit('modules.chats.markRead', chatModal.attr('touid'));
    };
    

    module.center(chatModal);

    Basically, every time you open(un-hide) a chat window back up from the taskbar, it re-centers it on the screen.
    Without this line, the chat window opens(un-hides) in it's previous location. Which is kinda nice

    Such a small thing haha
    But yeah, it's kind of nice, was wondering if there was a reason for this, or perhaps just kind of happens to be this way from when it was written?


  • Plugin & Theme Dev

    Kind of hijacking this thread to also say something minor about the chat modal: It's base z-index is higher than the bootstrap popover (1010 vs 200x), which causes this issue.


  • GNU/Linux Admin

    All good points, tagging @baris to take a look


Log in to reply
 

Suggested Topics

| |