mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-04 13:37:38 +02:00
closed #615 - added "active chats" dropdown to header
- some minor tweaks also, to make taskbar work a little better with chats
This commit is contained in:
@@ -102,6 +102,7 @@ define(['taskbar'], function(taskbar) {
|
||||
chatModal.show();
|
||||
module.bringModalToTop(chatModal);
|
||||
checkOnlineStatus(chatModal);
|
||||
taskbar.updateActive(uuid);
|
||||
}
|
||||
|
||||
module.minimize = function(uuid) {
|
||||
|
||||
@@ -87,6 +87,11 @@ define(function() {
|
||||
toggleNew: function(uuid, state) {
|
||||
var btnEl = $(taskbar.tasklist.querySelector('[data-uuid="' + uuid + '"]'));
|
||||
btnEl.toggleClass('new', state);
|
||||
},
|
||||
updateActive: function(uuid) {
|
||||
var tasks = $(taskbar.tasklist).find('li');
|
||||
tasks.removeClass('active');
|
||||
tasks.filter('[data-uuid="' + uuid + '"]').addClass('active');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,6 +103,7 @@ define(function() {
|
||||
push: taskbar.push,
|
||||
discard: taskbar.discard,
|
||||
minimize: taskbar.minimize,
|
||||
toggleNew: taskbar.toggleNew
|
||||
toggleNew: taskbar.toggleNew,
|
||||
updateActive: taskbar.updateActive
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user