changeset 428f24ada489 in sao:5.6
details: https://hg.tryton.org/sao?cmd=changeset;node=428f24ada489
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 3db1bd08acdc -r 428f24ada489 src/common.js
--- a/src/common.js Thu May 28 18:16:23 2020 +0200
+++ b/src/common.js Wed Jun 03 21:02:49 2020 +0200
@@ -3379,7 +3379,7 @@
if (this.format) {
return this.format(content);
}
- return content;
+ return jQuery('<span/>').text(content);
},
_format_action: function(content) {
if (this.format_action) {
@@ -3416,7 +3416,7 @@
'class': 'completion'
}).append(jQuery('<a/>', {
'href': '#'
- }).text(this._format(value)))
+ }).append(this._format(value)))
.click(function(evt) {
evt.preventDefault();
if (this.match_selected) {