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:
Shubham Padia
2018-06-08 17:54:17 +05:30
committed by Tim Abbott
parent e228687094
commit 4c575985c1
2 changed files with 10 additions and 0 deletions

View File

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

View File

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