mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Broken similar topics
This commit is contained in:
parent
7a01d575c2
commit
9fdea6cd46
@ -12,9 +12,11 @@ class Highlighted extends RawHtml {
|
|||||||
}
|
}
|
||||||
|
|
||||||
decorate($html) {
|
decorate($html) {
|
||||||
|
if (this.term) {
|
||||||
$html.highlight(this.term.split(/\s+/), { className: 'search-highlight' });
|
$html.highlight(this.term.split(/\s+/), { className: 'search-highlight' });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function createSearchResult(type, linkField, fn) {
|
function createSearchResult(type, linkField, fn) {
|
||||||
return createWidget(`search-result-${type}`, {
|
return createWidget(`search-result-${type}`, {
|
||||||
|
Loading…
Reference in New Issue
Block a user