changeset 1e874f8fefe5 in sao:5.2
details: https://hg.tryton.org/sao?cmd=changeset;node=1e874f8fefe5
description:
Allow html objects in autocompletion entries
issue9385
review317551002
(grafted from 1a8fdd7bd1e1db7196e42d3e2a690aa4f162fa17)
diffstat:
src/common.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 2b5edec23b50 -r 1e874f8fefe5 src/common.js
--- a/src/common.js Wed Jun 03 22:15:21 2020 +0200
+++ b/src/common.js Wed Jun 03 21:02:49 2020 +0200
@@ -3304,7 +3304,7 @@
if (this.format) {
return this.format(content);
}
- return content;
+ return jQuery('<span/>').text(content);
},
_format_action: function(content) {
if (this.format_action) {
@@ -3341,7 +3341,7 @@
'class': 'completion'
}).append(jQuery('<a/>', {
'href': '#'
- }).text(this._format(value)))
+ }).append(this._format(value)))
.click(function(evt) {
evt.preventDefault();
if (this.match_selected) {