Changeset - c47ab93fdc72
[Not reviewed]
default
0 1 0
Mads Kiilerich - 8 years ago 2017-09-15 03:06:30
mads@kiilerich.com
autocomplete: highlight the matched search string - use select2-match class as select2 itself does
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/public/js/base.js
Show inline comments
 
@@ -1070,9 +1070,9 @@ var autocompleteHighlightMatch = functio
 
    if (matchindex <0)
 
        return full;
 
    return full.substring(0, matchindex)
 
        + "<span class='match'>"
 
        + '<span class="select2-match">'
 
        + full.substr(matchindex, snippet.length)
 
        + "</span>" + full.substring(matchindex + snippet.length);
 
        + '</span>' + full.substring(matchindex + snippet.length);
 
};
 

	
 
// Return html snippet for showing the provided gravatar url
0 comments (0 inline, 0 general)