mirror of https://github.com/zulip/zulip.git
Make stream-invite typeahead more dynamic and accurate.
The typeahead for inviting users to an existing stream now uses a function, not a static list, and it now only shows users from your realm.
This commit is contained in:
parent
aadc198510
commit
758c040558
|
@ -325,7 +325,7 @@ function show_subscription_settings(sub_row) {
|
|||
});
|
||||
|
||||
sub_row.find('input[name="principal"]').typeahead({
|
||||
source: page_params.people_list,
|
||||
source: people.get_realm_persons, // This is a function.
|
||||
items: 5,
|
||||
highlighter: function (item) {
|
||||
var item_formatted = typeahead_helper.render_person(item);
|
||||
|
|
Loading…
Reference in New Issue