myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2216] trunk/app/views/layouts/_search.rhtml: cha


From: noreply
Subject: [myexperiment-hackers] [2216] trunk/app/views/layouts/_search.rhtml: changed search box to retain search query and type
Date: Tue, 9 Jun 2009 11:27:17 -0400 (EDT)

Revision
2216
Author
dgc
Date
2009-06-09 11:27:17 -0400 (Tue, 09 Jun 2009)

Log Message

changed search box to retain search query and type

Modified Paths

Diff

Modified: trunk/app/views/layouts/_search.rhtml (2215 => 2216)


--- trunk/app/views/layouts/_search.rhtml	2009-06-09 14:49:01 UTC (rev 2215)
+++ trunk/app/views/layouts/_search.rhtml	2009-06-09 15:27:17 UTC (rev 2216)
@@ -1,5 +1,5 @@
 <% form_tag search_path, :method => :get do %>
-  <%= text_field_tag :query, nil, :style => "padding: 0.1em;" %> 
-  <%= select_tag :type, options_for_select(Conf.search_categories.collect { |t| [t.capitalize, t] }, 'all') %>
+  <%= text_field_tag :query, @query, :style => "padding: 0.1em;" %> 
+  <%= select_tag :type, options_for_select(Conf.search_categories.collect { |t| [t.capitalize, t] }, @query_type) %>
   <%= submit_tag "Search", :disable_with => "Searching..." %>
 <% end %>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]