Commit 96c4c8ec54508543503ae6f64564c1b4d5bed49b

Authored by Larissa Reis
1 parent f3850081

Hides reply button if RequireAuthPlugin is enable

  Fix RequireAuthToCommentPlugin so it also hides the reply button in content view
  to improve user experience.

(ActionItem2337)
plugins/require_auth_to_comment/public/hide_comment_form.js
@@ -3,6 +3,7 @@ @@ -3,6 +3,7 @@
3 if (data.login || $('meta[name=profile.allow_unauthenticated_comments]').length > 0) { 3 if (data.login || $('meta[name=profile.allow_unauthenticated_comments]').length > 0) {
4 $('.post-comment-button').show(); 4 $('.post-comment-button').show();
5 $('#page-comment-form').show(); 5 $('#page-comment-form').show();
  6 + $('.comment-footer').show();
6 } 7 }
7 }); 8 });
8 })(jQuery); 9 })(jQuery);
plugins/require_auth_to_comment/public/style.css
1 -.post-comment-button, #page-comment-form { 1 +.post-comment-button, #page-comment-form, .comment-footer {
2 display: none; 2 display: none;
3 } 3 }