Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
typeahead: Remove unused header_html option.
evykassirer135395e8ce77
diff --git a/web/third/bootstrap-typeahead/typeahead.js b/web/third/bootstrap-typeahead/typeahead.jsindex a9ca3497610..2335d7dd69a 100644--- a/web/third/bootstrap-typeahead/typeahead.js+++ b/web/third/bootstrap-typeahead/typeahead.js@@ -149,6 +149,9 @@ function get_pseudo_keycode(event) {/* TYPEAHEAD PUBLIC CLASS DEFINITION* ================================= */+const header_element_html =+ '<p class="typeahead-header"><span id="typeahead-header-text"></span></p>';+const Typeahead = function (element, options) {this.$element = $(element);this.options = $.extend({}, $.fn.typeahead.defaults, options);@@ -158,7 +161,7 @@ const Typeahead = function (element, options) {this.updater = this.options.updater ?? this.updater;this.$container = $(this.options.container).appendTo(this.options.parentElement ?? "body");this.$menu = $(this.options.menu).appendTo(this.$container);- this.$header = $(this.options.header_html).appendTo(this.$container);+ this.$header = $(header_element_html).appendTo(this.$container);this.source = this.options.source;this.shown = false;this.mouse_moved_since_typeahead = false;@@ -644,7 +647,6 @@ $.fn.typeahead.defaults = {source: [],items: 8,container: '<div class="typeahead dropdown-menu"></div>',- header_html: '<p class="typeahead-header"><span id="typeahead-header-text"></span></p>',menu: '<ul class="typeahead-menu"></ul>',item: "<li><a></a></li>",minLength: 1,