Permalink
Browse files

Set initial value for dmail/compose when params['to'] is specified.

Fixes #205.
  • Loading branch information...
1 parent 9dbd1b6 commit 2e22e1d130e165d0f5f43e39a7717af896eb4f4e @nanaya committed Nov 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/views/dmail/_compose.html.erb
@@ -16,7 +16,7 @@
<tr>
<th><label for="dmail_to_name"><%= t('.form.to') %></label></th>
<td>
- <%= text_field "dmail", "to_name", :class => 'ac-user-name' %>
+ <%= text_field "dmail", "to_name", :value => params[:to], :class => 'ac-user-name' %>
</td>
</tr>
<tr>

0 comments on commit 2e22e1d

Please sign in to comment.