Big refactoring/rewrite for how annotation tooltips are shown, also work on #1474

This commit is contained in:
Torkel Ödegaard
2015-05-27 13:11:32 +02:00
parent e76d2ec9c2
commit 494ede5bbf
11 changed files with 114 additions and 31 deletions

View File

@@ -111,11 +111,19 @@ function (angular, _, $, config, kbn, moment) {
var list = [];
for (var i = 0; i < results.data.length; i++) {
var e = results.data[i];
var tags = [];
if (e.tags) {
tags = e.tags.split(',');
if (tags.length === 1) {
tags = e.tags.split(' ');
}
}
list.push({
annotation: annotation,
time: e.when * 1000,
title: e.what,
tags: e.tags,
tags: tags,
text: e.data
});
}