forked from saurabh/orbit4-5
rescue nil when site search field is empty
This commit is contained in:
parent
9243be1f21
commit
e95543872c
|
@ -3,7 +3,7 @@
|
||||||
<!-- search -->
|
<!-- search -->
|
||||||
<li id="search" class="searchClear">
|
<li id="search" class="searchClear">
|
||||||
<form id="search_form" method="get" action="http://www.google.com/cse" target="_blank">
|
<form id="search_form" method="get" action="http://www.google.com/cse" target="_blank">
|
||||||
<input type="hidden" name="cx" value="<%= current_site.search['sitesearch'] %>">
|
<input type="hidden" name="cx" value="<%= current_site.search['sitesearch'] rescue "" %>">
|
||||||
<%= text_field_tag 'q', '', {:class => "search-query input-medium", :placeholder => t("search.sitesearch"), 'x-webkit-speech' => ''} %>
|
<%= text_field_tag 'q', '', {:class => "search-query input-medium", :placeholder => t("search.sitesearch"), 'x-webkit-speech' => ''} %>
|
||||||
</form>
|
</form>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in New Issue