# HG changeset patch # User Mads Kiilerich # Date 2017-09-15 03:06:30 # Node ID c47ab93fdc72656120bb7f664a7c05a3754c3f59 # Parent 5f0bba61653c04de20002ce6109277149369a782 autocomplete: highlight the matched search string - use select2-match class as select2 itself does diff --git a/kallithea/public/js/base.js b/kallithea/public/js/base.js --- a/kallithea/public/js/base.js +++ b/kallithea/public/js/base.js @@ -1070,9 +1070,9 @@ var autocompleteHighlightMatch = functio if (matchindex <0) return full; return full.substring(0, matchindex) - + "" + + '' + full.substr(matchindex, snippet.length) - + "" + full.substring(matchindex + snippet.length); + + '' + full.substring(matchindex + snippet.length); }; // Return html snippet for showing the provided gravatar url