Commit 895776ac93c73421deac6cb089bdce36ad5a461d

Authored by Rodrigo Souto
2 parents 712b5f51 db0170f1

Merge branch 'ai2988' into 'stable'

require_auth_to_comment plugin break dom's ready when not logged

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