Highlight search term in sharing results
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
d7caf841df
commit
e5cae301eb
|
@ -71,6 +71,7 @@
|
|||
border: 1px solid var(--color-main-background);
|
||||
background: var(--color-main-background) none;
|
||||
color: var(--color-text-lighter);
|
||||
font-weight: 600;
|
||||
}
|
||||
.ui-state-highlight a,
|
||||
.ui-widget-content .ui-state-highlight a,
|
||||
|
|
|
@ -472,7 +472,11 @@
|
|||
}
|
||||
|
||||
$("<div class='autocomplete-item-text'></div>")
|
||||
.text(text)
|
||||
.html(
|
||||
text.replace(
|
||||
new RegExp(this.term, "gi"),
|
||||
"<span class='ui-state-highlight'>$&</span>")
|
||||
)
|
||||
.appendTo(insert);
|
||||
insert.attr('title', item.value.shareWith);
|
||||
insert.append('<span class="icon '+icon+'"></span>');
|
||||
|
|
Loading…
Reference in New Issue