mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2024-11-20 11:14:28 +00:00
Updates to matches
This commit is contained in:
parent
5efce50446
commit
ce962ca567
@ -70,7 +70,7 @@ $(function() {
|
||||
this.pullMatches(matches, this.result._highlightResult.aliases);
|
||||
this.pullMatches(matches, this.result._highlightResult.synonyms);
|
||||
|
||||
return this.template({ result: this.result, matches: matches.join(", ") });
|
||||
return this.template({ result: this.result, matches: matches });
|
||||
},
|
||||
|
||||
pullMatches: function(matches, list) {
|
||||
@ -84,7 +84,6 @@ $(function() {
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
var $searchViewElement = $("[data-view=search]");
|
||||
|
||||
if ($searchViewElement.length > 0) {
|
||||
|
@ -87,7 +87,10 @@ relative_path: ../
|
||||
<script type="text/template" id="result-template">
|
||||
<div class="fa-hover col-md-3 col-sm-4">
|
||||
<a href="{{ page.relative_path }}icon/<%= result.name %>">
|
||||
<i class="fa <%= result.css_class %>"></i> <%= result._highlightResult.name.value %> <% if (matches !== "") { %>(<%= matches %>)<% } %>
|
||||
<i class="fa <%= result.css_class %>"></i> <%= result._highlightResult.name.value %>
|
||||
<% if (matches.length > 0) { %>
|
||||
<span class="text-muted">(<%= matches.join(", ") %>)</span>
|
||||
<% } %>
|
||||
</a>
|
||||
</div>
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user