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

View File

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