pills: Use widget instead of my_pill throughout the app.

`compose_pm_pill.my_pill`, `search_pill_widget.my_pill` and any of
its occurrences throughout the app have been replaced to use `widget`
instead.
This commit is contained in:
Shubham Padia
2018-07-23 05:50:57 +05:30
committed by Tim Abbott
parent 1f553a41d0
commit 22b2393cae
6 changed files with 18 additions and 18 deletions

View File

@@ -7,10 +7,10 @@ exports.initialize = function () {
return;
}
var container = $('#search_arrows');
exports.my_pill = search_pill.create_pills(container);
exports.widget = search_pill.create_pills(container);
exports.my_pill.onPillRemove(function () {
var base_query = search_pill.get_search_string_for_current_filter(exports.my_pill);
exports.widget.onPillRemove(function () {
var base_query = search_pill.get_search_string_for_current_filter(exports.widget);
var operators = Filter.parse(base_query);
narrow.activate(operators, {trigger: 'search'});
});