ability to add class to taskbar; new action hook; send touid in chat

v1.18.x
psychobunny 10 years ago
parent 5a0c657587
commit 5d04cd0bef

@ -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) {

Loading…
Cancel
Save