Skip to content

Commit

Permalink
compiled js
Browse files Browse the repository at this point in the history
  • Loading branch information
lenadax committed Nov 7, 2024
1 parent b52b4da commit 48f1ab2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/yafowil/widget/autocomplete/resources/bootstrap5/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,13 +318,13 @@ var yafowil_autocomplete = (function (exports, $) {
this.elem = $('<div />')
.addClass('autocomplete-suggestion list-group-item')
.appendTo(this.widget.ul_elem);
$(`<span />`)
$('<span />')
.text(this.value.substring(0, index))
.appendTo(this.elem);
$(`<strong />`)
$('<strong />')
.text(this.value.substring(index, index + this.val.length))
.appendTo(this.elem);
$(`<span />`)
$('<span />')
.text(this.value.substring(index + this.val.length))
.appendTo(this.elem);
}
Expand All @@ -348,10 +348,10 @@ var yafowil_autocomplete = (function (exports, $) {
this.input_elem = $('input.autocomplete', this.elem)
.attr('spellcheck', false)
.attr('autocomplete', 'off');
this.dd_elem = $(`<div />`)
this.dd_elem = $('<div />')
.addClass('autocomplete-dropdown card shadow')
.appendTo('body');
this.ul_elem = $(`<ul />`)
this.ul_elem = $('<ul />')
.addClass('list-group list-group-flush')
.appendTo(this.dd_elem);
}
Expand Down

0 comments on commit 48f1ab2

Please sign in to comment.