update AnnotationFolder

This commit is contained in:
rolux 2014-12-16 20:23:29 +00:00
parent 4538f3801a
commit ad4e7dfa9a

View file

@ -294,7 +294,10 @@ Ox.AnnotationFolder = function(options, self) {
//autocompleteReplaceCorrect: true,
autocompleteSelect: true,
autocompleteSelectHighlight: true,
autocompleteSelectMaxWidth: 256
autocompleteSelectMaxWidth: 256,
format: function(value) {
return Ox.stripTags(value);
}
} : {}))
.bindEvent({
add: function(data) {
@ -440,8 +443,9 @@ Ox.AnnotationFolder = function(options, self) {
});
if (self.options.type == 'entity') {
annotations = annotations.map(function(annotation) {
annotation.value = annotation.value + ' <a href="/entities/'
+ annotation.entity.id + '">\u24D8</a>';
annotation.value = '<a href="/entities/'
+ annotation.entity.id + '">'
+ annotation.value + '</a>';
return annotation;
});
}