This commit is contained in:
3eef8a28f26fb2bcc514e6f1938929a1f931762 2023-02-16 23:15:07 -05:00 committed by powe97
parent de5e1d5cb6
commit 49fcc8dde2

View file

@ -64,7 +64,7 @@ const display_search_results = function(searchable_catalog) {
if(entry.attributes) if(entry.attributes)
entry.attributes.forEach(function(attr) { entry.attributes.forEach(function(attr) {
elemInnerHtml += '<span class="pill ' + attr + '-pill">' elemInnerHtml += '<span class="pill ' + attr + '-pill">'
+ attr + '<svg><use href="../icons.svg#' + attr_to_icon[attr] + '"></use></svg></span>'; + attr + '<svg><use href="./icons.svg#' + attr_to_icon[attr] + '"></use></svg></span>';
}); });
elemInnerHtml += "</div></h3><p>" + entry.description + "</p></a>" + '\n'; elemInnerHtml += "</div></h3><p>" + entry.description + "</p></a>" + '\n';
tr.innerHTML = elemInnerHtml; tr.innerHTML = elemInnerHtml;