|
|
@ -60,11 +60,12 @@ define('taskbar', function() {
|
|
|
|
var element = taskbar.tasklist.find('li[data-uuid="'+uuid+'"]');
|
|
|
|
var element = taskbar.tasklist.find('li[data-uuid="'+uuid+'"]');
|
|
|
|
if(element.length)
|
|
|
|
if(element.length)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
var title = $('<div></div>').html(options.title || 'NodeBB Task').text();
|
|
|
|
|
|
|
|
|
|
|
|
var btnEl = $('<li />')
|
|
|
|
var btnEl = $('<li />')
|
|
|
|
.html('<a href="#">' +
|
|
|
|
.html('<a href="#">' +
|
|
|
|
(options.icon ? '<img src="' + options.icon + '" />' : '') +
|
|
|
|
(options.icon ? '<img src="' + options.icon + '" />' : '') +
|
|
|
|
'<span>' + (options.title || 'NodeBB Task') + '</span>' +
|
|
|
|
'<span>' + title + '</span>' +
|
|
|
|
'</a>')
|
|
|
|
'</a>')
|
|
|
|
.attr({
|
|
|
|
.attr({
|
|
|
|
'data-module': module,
|
|
|
|
'data-module': module,
|
|
|
|