aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/css/jquery-ui-fixes.scss1
-rw-r--r--core/js/sharedialogview.js6
2 files changed, 6 insertions, 1 deletions
diff --git a/core/css/jquery-ui-fixes.scss b/core/css/jquery-ui-fixes.scss
index 729a6197376..d80d0c61e46 100644
--- a/core/css/jquery-ui-fixes.scss
+++ b/core/css/jquery-ui-fixes.scss
@@ -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,
diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js
index c8d9822d256..7b8759527b3 100644
--- a/core/js/sharedialogview.js
+++ b/core/js/sharedialogview.js
@@ -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>');