Commit 632cd09cbe0a2ec065b0423ae164def43c0f4862
1 parent
9e98ed02
Exists in
master
and in
29 other branches
Using jquery livequery to show comment form buttons
Showing
1 changed file
with
9 additions
and
3 deletions
Show diff stats
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').show(); | |
5 | - $('#page-comment-form').show(); | |
6 | - $('.comment-footer').show(); | |
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() { | |
11 | + $(this).show(); | |
12 | + }); | |
7 | 13 | } |
8 | 14 | }); |
9 | 15 | })(jQuery); | ... | ... |