mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
typeahead: Move highlight_with_escaping into render_person.
This commit is contained in:
@@ -183,8 +183,7 @@ function show_subscription_settings(sub_row) {
|
||||
source: people.get_realm_persons, // This is a function.
|
||||
items: 5,
|
||||
highlighter: function (item) {
|
||||
var item_formatted = typeahead_helper.render_person(item);
|
||||
return typeahead_helper.highlight_with_escaping(this.query, item_formatted);
|
||||
return typeahead_helper.render_person(this.query, item);
|
||||
},
|
||||
matcher: function (item) {
|
||||
var query = $.trim(this.query.toLowerCase());
|
||||
|
||||
Reference in New Issue
Block a user