Skip to content

Commit

Permalink
Minor tweaks to search :
Browse files Browse the repository at this point in the history
 - Fixed title
 - Changed search box to text rather than textarea to allow enter to
	 search.
  • Loading branch information
jstirk committed May 16, 2009
1 parent fb67a80 commit 5159d15
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/views/statuses/_search.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
</span>
</div>
<div class="info">
<textarea cols="40" rows="2" id="status" name="search_query"><%= @search_query %></textarea>
<input id="search" name="search_query" value="<%= @search_query %>" />

<div class="status-btn">
<input type="submit" name="update" value="search" id="update-submit" class="status-btn round-btn"/>
</div>
</div>
</fieldset>
</form>
</form>
2 changes: 1 addition & 1 deletion app/views/statuses/search.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% setup(:title=>"Replies", :body_id=>"replies", :body_classes=>"status replyable", :css=>['timeline']) %>
<% setup(:title=>"Search", :body_id=>"replies", :body_classes=>"status replyable", :css=>['timeline']) %>
<%= render :partial => "statuses/search" %>
<%if !@search_query.nil? && @search_query.length > 0 %>
Expand Down
6 changes: 5 additions & 1 deletion public/stylesheets/timeline.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ fieldset th, td {
overflow: auto;
resize: none;
}
#doingForm input#search {
width: 508px;
font: 1.15em / 1.1 'Lucida Grande', sans-serif;
}

div.direct-message-box fieldset {
width: 548px;
Expand Down Expand Up @@ -671,4 +675,4 @@ input.update-button, .update-button button, .update-button input[type=submit], i
vertical-align: top;
margin: 0 0 0 5px;
font-size: .8em;
}
}

0 comments on commit 5159d15

Please sign in to comment.