(testing...)

This commit is contained in:
rolux 2014-12-16 19:39:57 +00:00
parent 453b98f388
commit 5aaf951c6b

View file

@ -415,7 +415,7 @@ Ox.AnnotationFolder = function(options, self) {
}
function getAnnotations() {
return Ox.filter(self.options.items, function(item) {
var annotations = Ox.filter(self.options.items, function(item) {
return self.editing && item.id == self.options.selected || (
(
self.options.range == 'all' || (
@ -438,6 +438,14 @@ Ox.AnnotationFolder = function(options, self) {
)
);
});
if (self.options.type == 'entity') {
annotations = annotations.map(function(annotation) {
annotation.value = annotation.value
+ ' <a href="' + annotation.entity.id + '">\u24D8</a>';
return annotation;
});
}
return annotations;
}
function getEvents() {