#2200 actually fix dupe colors, show 10 topics

This commit is contained in:
barisusakli
2014-10-19 15:59:33 -04:00
parent 304f5b1c76
commit 4db31be7e3
2 changed files with 5 additions and 2 deletions

View File

@@ -367,7 +367,7 @@ define('admin/general/dashboard', ['semver'], function(semver) {
var tid = segments[i].tid;
if ($.inArray(tid, tids) === -1) {
usedTopicColors.splice($.inArray(segments[i].color, usedTopicColors), 1);
usedTopicColors.splice($.inArray(segments[i].fillColor, usedTopicColors), 1);
graphs.topics.removeData(i);
} else {
graphs.topics.segments[i].value = topics[tid].value;