Commit 5aa20f18 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Put the search form on the search.php page in an actual form, so it can

be submitted by pressing enter
parent 01584aed
......@@ -3,14 +3,16 @@
{include file="columnfullstart.tpl"}
<div class="searchform">
<h2>{str tag="search"}</h2>
<form action="" method="get" onsubmit="doSearch(); return false;">
<label>Query:
<input type="text" name="search_query" id="search_query">
<input type="text" name="search_query" id="search_query" value="{$search_query_value|escape}">
</label>
<select id="search_type">
<option value="user">{str tag=users}</option>
<option value="community">{str tag=communities}</option>
</select>
<button type="button" onclick="doSearch();">{str tag="go"}</button>
<input type="submit" class="submit" value="{str tag='go'}">
</form>
</div>
<div id="seachresults">
<h3>{str tag="results"}</h3>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment