Commit e176803e14ce31fb4e1f184b03bbf09ceceecde6
Exists in
master
and in
28 other branches
Merge commit 'refs/merge-requests/347' of git://gitorious.org/noosfero/noosfero …
…into merge-requests/347
Showing
2 changed files
with
7 additions
and
1 deletions
Show diff stats
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 | }); | ... | ... |