mirror of
https://github.com/zulip/zulip.git
synced 2025-11-08 16:01:58 +00:00
This is helpful because if the user pastes multiple queries in the searchbox and there are invalid search operators, then it is visible through the typeahead.
18 lines
425 B
JavaScript
18 lines
425 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 () {
|
|
search.narrow_or_search_for_term();
|
|
});
|
|
|
|
exports.widget.createPillonPaste(function () {
|
|
return false;
|
|
});
|
|
};
|
|
|
|
window.search_pill_widget = exports;
|