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:
Steve Howell 2016-11-01 12:49:50 -07:00 committed by Tim Abbott
parent aadc198510
commit 758c040558
1 changed files with 1 additions and 1 deletions

View File

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