Commit 1a36a52c356f0f488edf92d33172cee6fb675e01

Authored by Victor Costa
1 parent a46df3c9

rails3: fix comment_group plugin

plugins/comment_group/lib/comment_group_plugin/macros/allow_comment.rb
@@ -16,6 +16,9 @@ class CommentGroupPlugin::AllowComment < Noosfero::Plugin::Macro @@ -16,6 +16,9 @@ class CommentGroupPlugin::AllowComment < Noosfero::Plugin::Macro
16 article = source 16 article = source
17 count = article.group_comments.without_spam.in_group(group_id).count 17 count = article.group_comments.without_spam.in_group(group_id).count
18 18
19 - 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 }} 19 + proc {
  20 + render :partial => 'comment_group_plugin_profile/comment_group',
  21 + :locals => {:group_id => group_id, :article_id => article.id, :inner_html => inner_html, :count => count, :profile_identifier => article.profile.identifier }
  22 + }
20 end 23 end
21 end 24 end
plugins/comment_group/views/comment_group_plugin_profile/_comment_group.html.erb
@@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
3 <div style="float: left"> 3 <div style="float: left">
4 <%= link_to_remote(image_tag("/plugins/comment_group/images/comments.gif"), 4 <%= link_to_remote(image_tag("/plugins/comment_group/images/comments.gif"),
5 :url => { :profile => profile_identifier, :controller => 'comment_group_plugin_profile', :action => 'view_comments', :group_id => group_id, :article_id => article_id}, 5 :url => { :profile => profile_identifier, :controller => 'comment_group_plugin_profile', :action => 'view_comments', :group_id => group_id, :article_id => article_id},
6 - :loaded => j(visual_effect(:highlight, "comments_list_group_#{group_id}")),  
7 :method => :post, 6 :method => :post,
8 :condition => "!toggleGroup(#{group_id})", 7 :condition => "!toggleGroup(#{group_id})",
9 :complete => "loadCompleted(#{group_id})")%> 8 :complete => "loadCompleted(#{group_id})")%>