changeset a9a0c944f9c0 in sao:5.0
details: https://hg.tryton.org/sao?cmd=changeset;node=a9a0c944f9c0
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 4bb0bd72b213 -r a9a0c944f9c0 src/common.js
--- a/src/common.js     Wed Jun 03 22:15:43 2020 +0200
+++ b/src/common.js     Wed Jun 03 21:02:49 2020 +0200
@@ -3295,7 +3295,7 @@
             if (this.format) {
                 return this.format(content);
             }
-            return content;
+            return jQuery('<span/>').text(content);
         },
         _format_action: function(content) {
             if (this.format_action) {
@@ -3332,7 +3332,7 @@
                     'class': 'completion'
                 }).append(jQuery('<a/>', {
                     'href': '#'
-                }).text(this._format(value)))
+                }).append(this._format(value)))
                 .click(function(evt) {
                     evt.preventDefault();
                     if (this.match_selected) {

Reply via email to