Commit 1941721b92c350644c6551660e088de5bba0c0fc

Authored by Victor Costa
1 parent d840fab9

Fix require_auth_to_comment show/hide behavior of comment button

plugins/require_auth_to_comment/public/hide_comment_form.js
1 1 (function($) {
2 2 $(window).bind('userDataLoaded', function(event, data) {
3 3 if (data.login || $('meta[name="profile.allow_unauthenticated_comments"]').length > 0) {
4   - $('.post-comment-button').livequery(function() {
5   - $(this).show();
6   - });
7   - $('.page-comment-form').livequery(function() {
8   - $(this).show();
9   - });
10   - $('.comment-footer').livequery(function() {
  4 + $('.post-comment-button, .page-comment-form, .comment-footer, .display-comment-form').livequery(function() {
11 5 $(this).show();
12 6 });
13 7 }
... ...
plugins/require_auth_to_comment/public/style.css
1   -.post-comment-button, .page-comment-form, .comment-footer {
  1 +.post-comment-button, .page-comment-form, .comment-footer, .display-comment-form {
2 2 display: none;
3 3 }
... ...