Commit e176803e14ce31fb4e1f184b03bbf09ceceecde6

Authored by Rodrigo Souto
2 parents 3da8991d deee26e0

Merge commit 'refs/merge-requests/347' of git://gitorious.org/noosfero/noosfero …

…into merge-requests/347
features/comment.feature
... ... @@ -91,3 +91,9 @@ Feature: comment
91 91 And I follow "Post a comment"
92 92 When I press "Post comment"
93 93 And I should see "2 comments"
  94 +
  95 + @selenium
  96 + Scenario: hide post a comment button when clicked
  97 + Given I am on /booking/article-to-comment
  98 + And I follow "Post a comment"
  99 + Then "Post a comment" should not be visible within "#article"
... ...
public/javascripts/comment_form.js
... ... @@ -2,7 +2,7 @@ jQuery('.display-comment-form').unbind();
2 2 jQuery('.display-comment-form').click(function(){
3 3 var $button = jQuery(this);
4 4 toggleBox($button.parents('.post_comment_box'));
5   - jQuery('.display-comment-form').hide();
  5 + jQuery($button).hide();
6 6 $button.closest('.page-comment-form').find('input').first().focus();
7 7 return false;
8 8 });
... ...