mirror of https://github.com/zulip/zulip.git
Put streams lower in typeaheads and kill off some dead code related to search
(imported from commit c7d50f44a4de6cc5049e51ef4b671cc49902c466)
This commit is contained in:
parent
77d2d669de
commit
58c1110635
|
@ -111,9 +111,6 @@ function narrow_or_search_for_term(item) {
|
|||
var obj = mapped[item];
|
||||
ui.change_tab_to('#home');
|
||||
switch (obj.action) {
|
||||
case 'search':
|
||||
return obj.query;
|
||||
|
||||
case 'stream':
|
||||
narrow.by('stream', obj.query);
|
||||
// It's sort of annoying that this is not in a position to
|
||||
|
@ -155,7 +152,7 @@ function searchbox_sorter(items) {
|
|||
});
|
||||
|
||||
var query = this.query;
|
||||
$.each(['operators', 'stream', 'private_message', 'sender', 'search'], function (idx, action) {
|
||||
$.each(['operators', 'private_message', 'sender', 'stream'], function (idx, action) {
|
||||
var objs = objects_by_action[action];
|
||||
if (!objs)
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue