]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 486050: Bugzilla should prefill quicksearch box when showing search results from...
authorDavid Lawrence <dkl@redhat.com>
Wed, 12 May 2010 17:08:21 +0000 (13:08 -0400)
committerDavid Lawrence <dkl@redhat.com>
Wed, 12 May 2010 17:08:21 +0000 (13:08 -0400)
r/a=mkanat

buglist.cgi
template/en/default/global/common-links.html.tmpl

index 576b95572ea30fdb90dcb9cd9fce549b751eb2e9..65eb6f380c84e56ede1417e62e6389659954898b 100755 (executable)
@@ -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
index 6ad638f723a9723b38cb8f85f267ceb12e3b5f42..fe665df67f8c5a3fc09b13b2e71f8852487971df 100644 (file)
@@ -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>