mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 19:06:09 +00:00
search: Initialize search pill widget in ui_init.js.
Adds the initialize function to search_pill_widget.js for initializing a pill object on search query box.
This commit is contained in:
committed by
Tim Abbott
parent
e228687094
commit
4c575985c1
@@ -1,6 +1,15 @@
|
||||
var search_pill_widget = (function () {
|
||||
|
||||
var exports = {};
|
||||
|
||||
exports.initialize = function () {
|
||||
if (!page_params.search_pills_enabled) {
|
||||
return;
|
||||
}
|
||||
var container = $('#search_arrows');
|
||||
exports.my_pill = search_pill.create_pills(container);
|
||||
};
|
||||
|
||||
return exports;
|
||||
}());
|
||||
|
||||
|
||||
@@ -290,6 +290,7 @@ $(function () {
|
||||
server_events.initialize();
|
||||
people.initialize();
|
||||
compose_pm_pill.initialize();
|
||||
search_pill_widget.initialize();
|
||||
reload.initialize();
|
||||
user_groups.initialize();
|
||||
unread.initialize();
|
||||
|
||||
Reference in New Issue
Block a user