update AnnotationFolder
This commit is contained in:
parent
4538f3801a
commit
ad4e7dfa9a
1 changed files with 7 additions and 3 deletions
|
@ -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;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue