This commit is contained in:
r888888888
2017-10-11 17:36:35 -07:00
parent d883de258c
commit 45ff443b36

View File

@@ -6,7 +6,7 @@
<section id="search-box">
<h1>Search</h1>
<%= form_tag(path, :method => "get") do %>
<%= text_field_tag("tags", tags, :size => 20, :id => tags_dom_id, :data => { :autocomplete => "tag-query" }) %>
<%= text_area_tag("tags", tags, :rows => 1, :cols => 15, :id => tags_dom_id, :data => { :autocomplete => "tag-query" }) %>
<% if params[:raw] %>
<%= hidden_field_tag :raw, params[:raw] %>
<% end %>
@@ -28,3 +28,15 @@
</div>
<% end %>
</section>
<%= content_for(:html_header) do %>
<script>
$(function() {
$("#tags").scroll(function(e) {
var rows = parseInt($(e.target).attr("rows"));
$(e.target).attr('rows', rows + 1);
$(e.target).css("width", "100%");
});
});
</script>
<% end %>