mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-04 23:00:31 +01:00
taskbar text incase <script> is title
This commit is contained in:
@@ -60,11 +60,12 @@ define('taskbar', function() {
|
||||
var element = taskbar.tasklist.find('li[data-uuid="'+uuid+'"]');
|
||||
if(element.length)
|
||||
return;
|
||||
var title = $('<div></div>').html(options.title || 'NodeBB Task').text();
|
||||
|
||||
var btnEl = $('<li />')
|
||||
.html('<a href="#">' +
|
||||
(options.icon ? '<img src="' + options.icon + '" />' : '') +
|
||||
'<span>' + (options.title || 'NodeBB Task') + '</span>' +
|
||||
'<span>' + title + '</span>' +
|
||||
'</a>')
|
||||
.attr({
|
||||
'data-module': module,
|
||||
|
||||
Reference in New Issue
Block a user