mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-23 07:01:12 +01:00
click on pie chart to take you to topics page
This commit is contained in:
@@ -270,8 +270,8 @@ define('forum/admin/general/dashboard', ['semver'], function(semver) {
|
||||
|
||||
graphs.topics = new Chart(topicsCtx).Doughnut([], {responsive: true});
|
||||
topicsCanvas.onclick = function(evt){
|
||||
var activePoints = graphs.topics.getSegmentsAtEvent(evt);
|
||||
console.log(activePoints);
|
||||
var obj = graphs.topics.getSegmentsAtEvent(evt);
|
||||
window.open(RELATIVE_PATH + '/topic/' + obj[0].tid);
|
||||
};
|
||||
|
||||
setInterval(updateTrafficGraph, 15000);
|
||||
|
||||
Reference in New Issue
Block a user