diff --git a/plugins/require_auth_to_comment/public/hide_comment_form.js b/plugins/require_auth_to_comment/public/hide_comment_form.js index c9ba7df..e191945 100644 --- a/plugins/require_auth_to_comment/public/hide_comment_form.js +++ b/plugins/require_auth_to_comment/public/hide_comment_form.js @@ -1,13 +1,7 @@ (function($) { $(window).bind('userDataLoaded', function(event, data) { if (data.login || $('meta[name="profile.allow_unauthenticated_comments"]').length > 0) { - $('.post-comment-button').livequery(function() { - $(this).show(); - }); - $('.page-comment-form').livequery(function() { - $(this).show(); - }); - $('.comment-footer').livequery(function() { + $('.post-comment-button, .page-comment-form, .comment-footer, .display-comment-form').livequery(function() { $(this).show(); }); } diff --git a/plugins/require_auth_to_comment/public/style.css b/plugins/require_auth_to_comment/public/style.css index 9d3abde..5a1e765 100644 --- a/plugins/require_auth_to_comment/public/style.css +++ b/plugins/require_auth_to_comment/public/style.css @@ -1,3 +1,3 @@ -.post-comment-button, .page-comment-form, .comment-footer { +.post-comment-button, .page-comment-form, .comment-footer, .display-comment-form { display: none; } -- libgit2 0.21.2