8221366: Search box tries to search for "Search"

Reviewed-by: jjg
This commit is contained in:
Hannes Wallnöfer 2019-04-01 16:51:09 +02:00
parent 8954e2b37d
commit 2cc859d380
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ $(function() {
$(this).val(watermark).addClass('watermark');
}
});
$("#search").on('click keydown', function() {
$("#search").on('click keydown paste', function() {
if ($(this).val() == watermark) {
$(this).val('').removeClass('watermark');
}

View File

@ -625,7 +625,7 @@ public class TestSearch extends JavadocTester {
"function concatResults(a1, a2) {",
"if (exactMatcher.test(item.l)) {\n"
+ " presult.push(item);",
"$(\"#search\").on('click keydown', function() {\n"
"$(\"#search\").on('click keydown paste', function() {\n"
+ " if ($(this).val() == watermark) {\n"
+ " $(this).val('').removeClass('watermark');\n"
+ " }\n"