mirror of https://github.com/zulip/zulip.git
20 lines
464 B
JavaScript
20 lines
464 B
JavaScript
"use strict";
|
|
|
|
exports.initialize = function () {
|
|
if (!page_params.search_pills_enabled) {
|
|
return;
|
|
}
|
|
const container = $("#search_arrows");
|
|
exports.widget = search_pill.create_pills(container);
|
|
|
|
exports.widget.onPillRemove(() => {
|
|
if (exports.widget.items().length === 0) {
|
|
hashchange.go_to_location("");
|
|
}
|
|
});
|
|
|
|
exports.widget.createPillonPaste(() => false);
|
|
};
|
|
|
|
window.search_pill_widget = exports;
|