diff options
-rwxr-xr-x | buglist.cgi | 3 | ||||
-rw-r--r-- | template/en/default/global/common-links.html.tmpl | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/buglist.cgi b/buglist.cgi index 576b95572..65eb6f380 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -1163,6 +1163,9 @@ if ($dotweak && scalar @bugs) { # the "Remember search as" field. $vars->{'defaultsavename'} = $cgi->param('query_based_on'); +# If we did a quick search then redisplay the previously entered search +# string in the text field. +$vars->{'quicksearch'} = $searchstring; ################################################################################ # HTTP Header Generation diff --git a/template/en/default/global/common-links.html.tmpl b/template/en/default/global/common-links.html.tmpl index 6ad638f72..fe665df67 100644 --- a/template/en/default/global/common-links.html.tmpl +++ b/template/en/default/global/common-links.html.tmpl @@ -34,7 +34,8 @@ onsubmit="if (this.quicksearch.value == '') { alert('Please enter one or more search terms first.'); return false; } return true;"> - <input class="txt" type="text" id="quicksearch[% qs_suffix FILTER html %]" name="quicksearch"> + <input class="txt" type="text" id="quicksearch[% qs_suffix FILTER html %]" name="quicksearch" + value="[% quicksearch FILTER html %]"> <input class="btn" type="submit" value="Search" id="find[% qs_suffix FILTER html %]"> [%-# Work around FF bug: keep this on one line %]</form> |