mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-18 21:42:55 +01:00
ability to add class to taskbar; new action hook; send touid in chat
This commit is contained in:
@@ -265,6 +265,7 @@ define('chat', ['components', 'taskbar', 'string', 'sounds', 'forum/chats', 'tra
|
||||
|
||||
taskbar.push('chat', chatModal.attr('UUID'), {
|
||||
title: username,
|
||||
touid: touid,
|
||||
icon: 'fa-comment',
|
||||
state: ''
|
||||
});
|
||||
|
||||
@@ -61,6 +61,7 @@ define('taskbar', function() {
|
||||
var title = $('<div></div>').text(data.options.title || 'NodeBB Task').html();
|
||||
|
||||
var btnEl = $('<li />')
|
||||
.addClass(data.options.className)
|
||||
.html('<a href="#">' +
|
||||
(data.options.icon ? '<i class="fa ' + data.options.icon + '"></i> ' : '') +
|
||||
(data.options.image ? '<img src="' + data.options.image + '"/> ': '') +
|
||||
@@ -78,6 +79,8 @@ define('taskbar', function() {
|
||||
|
||||
taskbar.tasklist.append(btnEl);
|
||||
update();
|
||||
|
||||
$(window).trigger('action:taskbar.pushed');
|
||||
};
|
||||
|
||||
taskbar.minimize = function(module, uuid) {
|
||||
|
||||
Reference in New Issue
Block a user