mirror of https://github.com/zulip/zulip.git
21 lines
519 B
JavaScript
21 lines
519 B
JavaScript
exports.initialize = function () {
|
|
if (!page_params.search_pills_enabled) {
|
|
return;
|
|
}
|
|
const container = $('#search_arrows');
|
|
exports.widget = search_pill.create_pills(container);
|
|
|
|
exports.widget.onPillRemove(function () {
|
|
if (exports.widget.items().length === 0) {
|
|
ui_util.change_tab_to('#home');
|
|
narrow.deactivate();
|
|
}
|
|
});
|
|
|
|
exports.widget.createPillonPaste(function () {
|
|
return false;
|
|
});
|
|
};
|
|
|
|
window.search_pill_widget = exports;
|