From 632cd09cbe0a2ec065b0423ae164def43c0f4862 Mon Sep 17 00:00:00 2001 From: vfcosta Date: Fri, 22 Feb 2013 18:24:09 -0300 Subject: [PATCH] Using jquery livequery to show comment form buttons --- plugins/require_auth_to_comment/public/hide_comment_form.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 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 018bbd5..01c5252 100644 --- a/plugins/require_auth_to_comment/public/hide_comment_form.js +++ b/plugins/require_auth_to_comment/public/hide_comment_form.js @@ -1,9 +1,15 @@ (function($) { $(window).bind('userDataLoaded', function(event, data) { if (data.login || $('meta[name=profile.allow_unauthenticated_comments]').length > 0) { - $('.post-comment-button').show(); - $('#page-comment-form').show(); - $('.comment-footer').show(); + $('.post-comment-button').livequery(function() { + $(this).show(); + }); + $('#page-comment-form').livequery(function() { + $(this).show(); + }); + $('.comment-footer').livequery(function() { + $(this).show(); + }); } }); })(jQuery); -- libgit2 0.21.2