From 1a36a52c356f0f488edf92d33172cee6fb675e01 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Wed, 11 Jun 2014 09:46:55 -0300 Subject: [PATCH] rails3: fix comment_group plugin --- plugins/comment_group/lib/comment_group_plugin/macros/allow_comment.rb | 5 ++++- plugins/comment_group/views/comment_group_plugin_profile/_comment_group.html.erb | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/comment_group/lib/comment_group_plugin/macros/allow_comment.rb b/plugins/comment_group/lib/comment_group_plugin/macros/allow_comment.rb index 0afd736..c4258f9 100644 --- a/plugins/comment_group/lib/comment_group_plugin/macros/allow_comment.rb +++ b/plugins/comment_group/lib/comment_group_plugin/macros/allow_comment.rb @@ -16,6 +16,9 @@ class CommentGroupPlugin::AllowComment < Noosfero::Plugin::Macro article = source count = article.group_comments.without_spam.in_group(group_id).count - proc {render :partial => 'comment_group_plugin_profile/comment_group', :locals => {:group_id => group_id, :article_id => article.id, :inner_html => inner_html, :count => count, :profile_identifier => article.profile.identifier }} + proc { + render :partial => 'comment_group_plugin_profile/comment_group', + :locals => {:group_id => group_id, :article_id => article.id, :inner_html => inner_html, :count => count, :profile_identifier => article.profile.identifier } + } end end diff --git a/plugins/comment_group/views/comment_group_plugin_profile/_comment_group.html.erb b/plugins/comment_group/views/comment_group_plugin_profile/_comment_group.html.erb index 21856ae..3b04529 100644 --- a/plugins/comment_group/views/comment_group_plugin_profile/_comment_group.html.erb +++ b/plugins/comment_group/views/comment_group_plugin_profile/_comment_group.html.erb @@ -3,7 +3,6 @@
<%= link_to_remote(image_tag("/plugins/comment_group/images/comments.gif"), :url => { :profile => profile_identifier, :controller => 'comment_group_plugin_profile', :action => 'view_comments', :group_id => group_id, :article_id => article_id}, - :loaded => j(visual_effect(:highlight, "comments_list_group_#{group_id}")), :method => :post, :condition => "!toggleGroup(#{group_id})", :complete => "loadCompleted(#{group_id})")%> -- libgit2 0.21.2