From 1941721b92c350644c6551660e088de5bba0c0fc Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Fri, 24 Oct 2014 16:43:17 -0300 Subject: [PATCH] Fix require_auth_to_comment show/hide behavior of comment button --- plugins/require_auth_to_comment/public/hide_comment_form.js | 8 +------- plugins/require_auth_to_comment/public/style.css | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) 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