changeset 1a8fdd7bd1e1 in sao:default details: https://hg.tryton.org/sao?cmd=changeset;node=1a8fdd7bd1e1 description: Allow html objects in autocompletion entries
issue9385 review317551002 diffstat: src/common.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (21 lines): diff -r a3290eb0867d -r 1a8fdd7bd1e1 src/common.js --- a/src/common.js Mon Jun 01 09:29:02 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) {