diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index b9b9e7f..a07ec9b 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1172,7 +1172,7 @@ module ApplicationHelper text_area(object_name, method, { :id => text_area_id, :onkeyup => "limited_text_area('#{text_area_id}', #{limit})" }.merge(options)), content_tag(:p, content_tag(:span, limit) + ' ' + _(' characters left'), :id => text_area_id + '_left'), content_tag(:p, _('Limit of characters reached'), :id => text_area_id + '_limit', :style => 'display: none') - ], :class => 'limited-text-area') + ].join, :class => 'limited-text-area') end def expandable_text_area(object_name, method, text_area_id, options = {}) diff --git a/app/views/content_viewer/image_gallery.html.erb b/app/views/content_viewer/image_gallery.html.erb index 585adbd..058f347 100644 --- a/app/views/content_viewer/image_gallery.html.erb +++ b/app/views/content_viewer/image_gallery.html.erb @@ -10,7 +10,7 @@ <% end %>
<% update_area = tab_action == 'wall' ? 'profile_activities' : 'network-activities' %> - <% form_remote_tag :url => {:controller => 'profile', :action => 'leave_comment_on_activity', :tab_action => tab_action}, :html => { :class => 'profile-wall-reply-form', 'data-update' => update_area } do %> + <%= form_remote_tag :url => {:controller => 'profile', :action => 'leave_comment_on_activity', :tab_action => tab_action}, :html => { :class => 'profile-wall-reply-form', 'data-update' => update_area } do %> <%= expandable_text_area :comment, :body, "reply_content_#{activity.id}", diff --git a/app/views/profile/_profile_scrap_reply_form.html.erb b/app/views/profile/_profile_scrap_reply_form.html.erb index dcd13a6..c9111c2 100644 --- a/app/views/profile/_profile_scrap_reply_form.html.erb +++ b/app/views/profile/_profile_scrap_reply_form.html.erb @@ -1,7 +1,7 @@