From bc1328da433a262813b94f5eb762f65aac3a2b6a Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Thu, 14 Apr 2016 15:40:43 -0300 Subject: [PATCH] comment-edit: fix modal call --- app/helpers/comment_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/comment_helper.rb b/app/helpers/comment_helper.rb index 9a471ce..6cde2ef 100644 --- a/app/helpers/comment_helper.rb +++ b/app/helpers/comment_helper.rb @@ -66,7 +66,7 @@ module CommentHelper def link_for_edit(comment) if comment.can_be_updated_by?(user) - {:link => expirable_comment_link(comment, :edit, _('Edit'), url_for(:profile => profile.identifier, :controller => :comment, :action => :edit, :id => comment.id),:class => 'modal')} + {:link => expirable_comment_link(comment, :edit, _('Edit'), url_for(:profile => profile.identifier, :controller => :comment, :action => :edit, :id => comment.id), :modal => true)} end end -- libgit2 0.21.2