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