mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
fix(acp): #9008 undefined link for "no users browsing" state on dashboard
This commit is contained in:
@@ -526,9 +526,8 @@ define('admin/dashboard', ['Chart', 'translator', 'benchpress'], function (Chart
|
|||||||
var legend = $('#topics-legend').html('');
|
var legend = $('#topics-legend').html('');
|
||||||
var html = '';
|
var html = '';
|
||||||
topics.forEach(function (t, i) {
|
topics.forEach(function (t, i) {
|
||||||
var label = t.count === '0' ?
|
var link = t.tid ? '<a title="' + t.title + '"href="' + config.relative_path + '/topic/' + t.tid + '" target="_blank"> ' + t.title + '</a>' : t.title;
|
||||||
t.title :
|
var label = t.count === '0' ? t.title : link;
|
||||||
'<a title="' + t.title + '"href="' + config.relative_path + '/topic/' + t.tid + '" target="_blank"> ' + t.title + '</a>';
|
|
||||||
|
|
||||||
html += '<li>' +
|
html += '<li>' +
|
||||||
'<div style="background-color: ' + topicColors[i] + ';"></div>' +
|
'<div style="background-color: ' + topicColors[i] + ';"></div>' +
|
||||||
|
|||||||
Reference in New Issue
Block a user