mirror of https://github.com/zulip/zulip.git
search.js: kill off labels, mapped, update_typeahead()
(imported from commit e0320b5315762d1776ef198fe57663ee6b74d7f8)
This commit is contained in:
parent
73f013f077
commit
f8cad17c75
|
@ -9,8 +9,6 @@ var cached_table = $('table.focused_table');
|
|||
var current_search_term;
|
||||
|
||||
// Data storage for the typeahead -- to go from object to string representation and vice versa.
|
||||
var labels = [];
|
||||
var mapped = {}; // to be deprecated
|
||||
var search_object = {};
|
||||
|
||||
function get_query(obj) {
|
||||
|
@ -97,11 +95,6 @@ function get_label(obj) {
|
|||
}
|
||||
}
|
||||
|
||||
exports.update_typeahead = function () {
|
||||
mapped = {};
|
||||
labels = []; // deprecated
|
||||
};
|
||||
|
||||
function narrow_or_search_for_term(item) {
|
||||
var search_query_box = $("#search_query");
|
||||
var obj = search_object[item];
|
||||
|
|
|
@ -12,7 +12,6 @@ exports.autocomplete_needs_update = function (needs_update) {
|
|||
};
|
||||
|
||||
exports.update_autocomplete = function () {
|
||||
search.update_typeahead();
|
||||
autocomplete_needs_update = false;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue