mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8241292: Interactive Search results are not highlighted as they used to be
Reviewed-by: prappo
This commit is contained in:
parent
81353a56f9
commit
7dc952ec20
2 changed files with 36 additions and 6 deletions
|
@ -29,7 +29,7 @@ var catPackages = "Packages";
|
|||
var catTypes = "Types";
|
||||
var catMembers = "Members";
|
||||
var catSearchTags = "SearchTags";
|
||||
var highlight = "<span class=\"resultHighlight\">$&</span>";
|
||||
var highlight = "<span class=\"result-highlight\">$&</span>";
|
||||
var searchPattern = "";
|
||||
var RANKING_THRESHOLD = 2;
|
||||
var NO_MATCH = 0xffff;
|
||||
|
@ -128,10 +128,10 @@ $.widget("custom.catcomplete", $.ui.autocomplete, {
|
|||
li = rMenu._renderItemData(ul, item);
|
||||
if (item.category) {
|
||||
li.attr("aria-label", item.category + " : " + item.l);
|
||||
li.attr("class", "resultItem");
|
||||
li.attr("class", "result-item");
|
||||
} else {
|
||||
li.attr("aria-label", item.l);
|
||||
li.attr("class", "resultItem");
|
||||
li.attr("class", "result-item");
|
||||
}
|
||||
});
|
||||
},
|
||||
|
@ -159,10 +159,10 @@ $.widget("custom.catcomplete", $.ui.autocomplete, {
|
|||
var div = $("<div/>").appendTo(li);
|
||||
if (item.category === catSearchTags) {
|
||||
if (item.d) {
|
||||
div.html(label + "<span class=\"searchTagHolderResult\"> (" + item.h + ")</span><br><span class=\"searchTagDescResult\">"
|
||||
div.html(label + "<span class=\"search-tag-holder-result\"> (" + item.h + ")</span><br><span class=\"search-tag-desc-result\">"
|
||||
+ item.d + "</span><br>");
|
||||
} else {
|
||||
div.html(label + "<span class=\"searchTagHolderResult\"> (" + item.h + ")</span>");
|
||||
div.html(label + "<span class=\"search-tag-holder-result\"> (" + item.h + ")</span>");
|
||||
}
|
||||
} else {
|
||||
div.html(label);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue