Pre-fill query box on the search page if a query argument is present.

        Patch by yvi. 

diffs (12 lines):

diff -r 8fb8cae38c31 -r bac7fa415801 htdocs/search.bml
--- a/htdocs/search.bml Sun May 02 07:23:00 2010 +0000
+++ b/htdocs/search.bml Sun May 02 07:27:23 2010 +0000
@@ -35,7 +35,7 @@ body<=
 
     # see what search mode...
     my $su = LJ::load_user( $POST{mode} || $GET{user} );
-    my $q = LJ::strip_html( LJ::trim( $POST{query} ) );
+    my $q = LJ::strip_html( LJ::trim( $POST{query} || $GET{query} ) );
     my $sby = $POST{sort_by} || 'new';
     $sby = 'new' unless $sby =~ /^(?:new|old|rel)$/;
 
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to