Skip to content

Commit

Permalink
fix: flicker on dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Mar 16, 2021
1 parent d14ba1f commit 2041b80
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions public/src/admin/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,6 @@ define('admin/dashboard', ['Chart', 'translator', 'benchpress'], function (Chart
});

function buildTopicsLegend() {
var legend = $('#topics-legend').html('');
var html = '';
topics.forEach(function (t, i) {
var link = t.tid ? '<a title="' + t.title + '"href="' + config.relative_path + '/topic/' + t.tid + '" target="_blank"> ' + t.title + '</a>' : t.title;
Expand All @@ -528,7 +527,7 @@ define('admin/dashboard', ['Chart', 'translator', 'benchpress'], function (Chart
'<span> (' + t.count + ') ' + label + '</span>' +
'</li>';
});
legend.translateHtml(html);
$('#topics-legend').translateHtml(html);
}

buildTopicsLegend();
Expand Down

0 comments on commit 2041b80

Please sign in to comment.