Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

search: Do not narrow on updation of search pills.

Ryan Rehman4ed4aa7b6f31
diff --git a/static/js/search.js b/static/js/search.js
index d987b596c5d..df500386bcd 100644
--- a/static/js/search.js
+++ b/static/js/search.js
@@ -93,6 +93,7 @@ exports.initialize = function () {
if (page_params.search_pills_enabled) {
search_pill.append_search_string(search_string,
search_pill_widget.widget);
+ return search_query_box.val();
}
return exports.narrow_or_search_for_term(search_string);
},
diff --git a/static/js/search_pill_widget.js b/static/js/search_pill_widget.js
index ff92c80b858..e5ea4b08aab 100644
--- a/static/js/search_pill_widget.js
+++ b/static/js/search_pill_widget.js
@@ -5,10 +5,6 @@ exports.initialize = function () {
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;
});