diff --git a/core/misc/autocomplete.js b/core/misc/autocomplete.js index 5a1c156d0b..3a4a793887 100644 --- a/core/misc/autocomplete.js +++ b/core/misc/autocomplete.js @@ -201,7 +201,8 @@ */ function renderItem(ul, item) { return $('
  • ') - .append($('').html(item.label)) + .attr('data-value', item.value) + .append($('').html(item.label.replace(new RegExp(this.term, 'i'), '$&'))) .appendTo(ul); }