Commit 2d771eaf0755082ca28c85edbd241f01f59a7d20

Authored by Victor Costa
2 parents 9326b847 e91763d9

Merge branch 'fix_focus_comment' into stable

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
public/javascripts/comment_form.js
@@ -3,7 +3,7 @@ jQuery('.display-comment-form').click(function(){ @@ -3,7 +3,7 @@ jQuery('.display-comment-form').click(function(){
3 var $button = jQuery(this); 3 var $button = jQuery(this);
4 toggleBox($button.parents('.post_comment_box')); 4 toggleBox($button.parents('.post_comment_box'));
5 jQuery($button).hide(); 5 jQuery($button).hide();
6 - $button.closest('.page-comment-form').find('input').first().focus(); 6 + $button.closest('.page-comment-form').find('input[type="text"],textarea').first().focus();
7 return false; 7 return false;
8 }); 8 });
9 9