mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
try softening highlight on topic stop highlighting categories
This commit is contained in:
parent
ce067a404f
commit
9d75f41172
2 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
<a class='search-link' href='{{unbound url}}'>
|
||||
<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>
|
||||
{{#unless Discourse.Mobile.mobileView}}
|
||||
<span class='blurb'>
|
||||
|
|
|
@ -8,7 +8,8 @@ export default Ember.CollectionView.extend({
|
|||
didInsertElement: function(){
|
||||
var term = this.get('controller.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 a new issue