mirror of https://github.com/zulip/zulip.git
Add typeahead to 'add subscriber' input box
(imported from commit 49e9a75d3153e1ac97e924a1bdc971df46d6bc10)
This commit is contained in:
parent
5ffc646972
commit
cd60f18752
|
@ -360,6 +360,18 @@ $(function () {
|
||||||
error_elem.removeClass("hide").text("Could not fetch subscriber list");
|
error_elem.removeClass("hide").text("Could not fetch subscriber list");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
sub_row.find('input[name="principal"]').typeahead({
|
||||||
|
source: typeahead_helper.private_message_typeahead_list,
|
||||||
|
items: 4,
|
||||||
|
highlighter: function (item) {
|
||||||
|
var query = this.query;
|
||||||
|
return typeahead_helper.highlight_with_escaping(query, item);
|
||||||
|
},
|
||||||
|
updater: function (item) {
|
||||||
|
return typeahead_helper.private_message_mapped[item].email;
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue