8221366: Search box tries to search for "Search"
Reviewed-by: jjg
This commit is contained in:
parent
8954e2b37d
commit
2cc859d380
@ -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');
|
||||
}
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user