Skip to content

Commit 98abe5b

Browse files
scopzx2c4
authored andcommitted
ui-shared: use type='search' for the search box
Signed-off-by: Ville Skyttä <[email protected]>
1 parent fd069b4 commit 98abe5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui-shared.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ void cgit_print_pageheader(void)
10271027
html_option("committer", "committer", ctx.qry.grep);
10281028
html_option("range", "range", ctx.qry.grep);
10291029
html("</select>\n");
1030-
html("<input class='txt' type='text' size='10' name='q' value='");
1030+
html("<input class='txt' type='search' size='10' name='q' value='");
10311031
html_attr(ctx.qry.search);
10321032
html("'/>\n");
10331033
html("<input type='submit' value='search'/>\n");
@@ -1042,7 +1042,7 @@ void cgit_print_pageheader(void)
10421042
html("<form method='get' action='");
10431043
html_attr(currenturl);
10441044
html("'>\n");
1045-
html("<input type='text' name='q' size='10' value='");
1045+
html("<input type='search' name='q' size='10' value='");
10461046
html_attr(ctx.qry.search);
10471047
html("'/>\n");
10481048
html("<input type='submit' value='search'/>\n");

0 commit comments

Comments
 (0)