Commit f7418835f93d1224c094ebb027a8c675a89216ad
1 parent
2ad7e430
Exists in
master
and in
29 other branches
Scraps reply submiting with enter
Showing
1 changed file
with
1 additions
and
3 deletions
Show diff stats
app/views/profile/_profile_scrap.rhtml
@@ -38,11 +38,9 @@ | @@ -38,11 +38,9 @@ | ||
38 | <div id='profile-wall-reply-form-<%= scrap.id%>' style='display:none;'> | 38 | <div id='profile-wall-reply-form-<%= scrap.id%>' style='display:none;'> |
39 | <p class='profile-wall-reply'> | 39 | <p class='profile-wall-reply'> |
40 | <% form_remote_tag :url => {:controller => 'profile', :action => 'leave_scrap'}, :update => "profile_activities", :success =>"hide_and_show(['#profile-wall-reply-form-#{scrap.id}'],['#profile-wall-reply-response-#{scrap.id}'])" do %> | 40 | <% form_remote_tag :url => {:controller => 'profile', :action => 'leave_scrap'}, :update => "profile_activities", :success =>"hide_and_show(['#profile-wall-reply-form-#{scrap.id}'],['#profile-wall-reply-response-#{scrap.id}'])" do %> |
41 | - <%= limited_text_area :scrap, :content, 420, "reply_content_#{scrap.id}", :cols => 50, :rows => 2 %> | 41 | + <%= text_area :scrap, :content, { :id => "reply_content_#{scrap.id}", :cols => 50, :rows => 2, :class => 'submit-with-keypress' } %> |
42 | <%= hidden_field :scrap, :scrap_id, :id => "scrap_id_#{scrap.id}" %> | 42 | <%= hidden_field :scrap, :scrap_id, :id => "scrap_id_#{scrap.id}" %> |
43 | <%= hidden_field_tag 'receiver_id', scrap.sender.id %> | 43 | <%= hidden_field_tag 'receiver_id', scrap.sender.id %> |
44 | - <%= submit_button :add, _('Leave a scrap') %> | ||
45 | - <%= button_to_function :cancel, _('Cancel'), "hide_and_show(['#profile-wall-reply-#{scrap.id}'],[]);return false" %> | ||
46 | <% end %> | 44 | <% end %> |
47 | </p> | 45 | </p> |
48 | </div> | 46 | </div> |