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

This commit is contained in:
psychobunny
2015-04-17 15:25:32 -04:00
parent 5a0c657587
commit 5d04cd0bef
2 changed files with 4 additions and 0 deletions

View File

@@ -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: ''
});

View File

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