try softening highlight on topic stop highlighting categories
This commit is contained in:
parent
ce067a404f
commit
9d75f41172
|
@ -1,6 +1,6 @@
|
||||||
<a class='search-link' href='{{unbound url}}'>
|
<a class='search-link' href='{{unbound url}}'>
|
||||||
<span class='topic'>
|
<span class='topic'>
|
||||||
{{topic-status topic=topic disableActions=true}}{{unbound topic.title}}{{category-badge topic.category}}
|
{{topic-status topic=topic disableActions=true}}<span class='topic-title'>{{unbound topic.title}}</span>{{category-badge topic.category}}
|
||||||
</span>
|
</span>
|
||||||
{{#unless Discourse.Mobile.mobileView}}
|
{{#unless Discourse.Mobile.mobileView}}
|
||||||
<span class='blurb'>
|
<span class='blurb'>
|
||||||
|
|
|
@ -8,7 +8,8 @@ export default Ember.CollectionView.extend({
|
||||||
didInsertElement: function(){
|
didInsertElement: function(){
|
||||||
var term = this.get('controller.term');
|
var term = this.get('controller.term');
|
||||||
if(!_.isEmpty(term)) {
|
if(!_.isEmpty(term)) {
|
||||||
this.$().highlight(term.split(/\s+/));
|
this.$('.blurb').highlight(term.split(/\s+/));
|
||||||
|
this.$('.topic-title').highlight(term.split(/\s+/), {className: 'highlighted'} );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue