]> granicus.if.org Git - cgit/commitdiff
ui-shared: use type='search' for the search box
authorVille Skyttä <ville.skytta@iki.fi>
Sat, 14 Oct 2017 19:02:16 +0000 (22:02 +0300)
committerJason A. Donenfeld <Jason@zx2c4.com>
Sun, 15 Oct 2017 16:43:57 +0000 (18:43 +0200)
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
ui-shared.c

index 07c78a517579650e0aa27c22228ebb46d54f6293..9d8f66b9fab89ad63e5bfaac22eb6956567f10dd 100644 (file)
@@ -1027,7 +1027,7 @@ void cgit_print_pageheader(void)
                html_option("committer", "committer", ctx.qry.grep);
                html_option("range", "range", ctx.qry.grep);
                html("</select>\n");
-               html("<input class='txt' type='text' size='10' name='q' value='");
+               html("<input class='txt' type='search' size='10' name='q' value='");
                html_attr(ctx.qry.search);
                html("'/>\n");
                html("<input type='submit' value='search'/>\n");
@@ -1042,7 +1042,7 @@ void cgit_print_pageheader(void)
                html("<form method='get' action='");
                html_attr(currenturl);
                html("'>\n");
-               html("<input type='text' name='q' size='10' value='");
+               html("<input type='search' name='q' size='10' value='");
                html_attr(ctx.qry.search);
                html("'/>\n");
                html("<input type='submit' value='search'/>\n");