2018-06-08 14:24:17 +02:00
|
|
|
exports.initialize = function () {
|
|
|
|
if (!page_params.search_pills_enabled) {
|
|
|
|
return;
|
|
|
|
}
|
2019-11-02 00:06:25 +01:00
|
|
|
const container = $('#search_arrows');
|
2018-07-23 02:20:57 +02:00
|
|
|
exports.widget = search_pill.create_pills(container);
|
2018-07-14 16:10:00 +02:00
|
|
|
|
2018-07-23 02:20:57 +02:00
|
|
|
exports.widget.onPillRemove(function () {
|
2020-05-10 03:58:57 +02:00
|
|
|
search.narrow_or_search_for_term();
|
2018-07-14 16:10:00 +02:00
|
|
|
});
|
2020-05-15 01:27:15 +02:00
|
|
|
|
|
|
|
exports.widget.createPillonPaste(function () {
|
|
|
|
return false;
|
|
|
|
});
|
2018-06-08 14:24:17 +02:00
|
|
|
};
|
|
|
|
|
2019-10-25 09:45:13 +02:00
|
|
|
window.search_pill_widget = exports;
|