[dw-free] prefill search query box if provided with url argument
[commit: http://hg.dwscoalition.org/dw-free/rev/bac7fa415801]
http://bugs.dwscoalition.org/show_bug.cgi?id=2603
Pre-fill query box on the search page if a query argument is present.
Patch by
yvi.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2603
Pre-fill query box on the search page if a query argument is present.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- htdocs/search.bml
-------------------------------------------------------------------------------- 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)$/; --------------------------------------------------------------------------------