diff --git a/web/third/bootstrap-typeahead/typeahead.js b/web/third/bootstrap-typeahead/typeahead.js index a9ca349761..2335d7dd69 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 = + '
'; + 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: '', - header_html: '
', menu: '', item: "