mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:09:00 +08:00
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}}'>
|
||||
<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 New Issue
Block a user