try softening highlight on topic stop highlighting categories

This commit is contained in:
Sam 2014-09-04 15:30:08 +10:00
parent ce067a404f
commit 9d75f41172
2 changed files with 3 additions and 2 deletions

View file

@ -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'>

View file

@ -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'} );
}
}
});