aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2017-10-14 19:02:16 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2017-10-15 16:43:57 +0000
commit98abe5bb9e6297a5dcbae206e00352c8630d922e (patch)
tree2ac32cbf1c0a4daa4e85029bc28b924a64a0dc81
parentfd069b4ca08cb46eb335a1434330b21fbaf84b9c (diff)
downloadcgit-98abe5bb9e6297a5dcbae206e00352c8630d922e.tar
cgit-98abe5bb9e6297a5dcbae206e00352c8630d922e.tar.gz
cgit-98abe5bb9e6297a5dcbae206e00352c8630d922e.zip
ui-shared: use type='search' for the search box
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
-rw-r--r--ui-shared.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-shared.c b/ui-shared.c
index 07c78a5..9d8f66b 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -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");