]> git.openstreetmap.org Git - osqa.git/commitdiff
OSQA-266
authorqw3rty <qw3rty@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 28 Jun 2010 14:31:15 +0000 (14:31 +0000)
committerqw3rty <qw3rty@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 28 Jun 2010 14:31:15 +0000 (14:31 +0000)
Put focus on comment text area when clicking "Add new comment"

git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@458 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/skins/default/media/js/osqa.main.js

index dc84677ba01f3a2efd228ae941bdcf4ca744508b..e2a5e876ae6903eb9d54aa4545fdfc5751c54073 100644 (file)
@@ -435,6 +435,7 @@ $(function() {
             function show_comment_form() {\r
                 $container.slideDown('slow');\r
                 $add_comment_link.fadeOut('slow');\r
+                $textarea.focus();\r
                 window.setInterval(function() {\r
                     process_form_changes();\r
                 }, 200);\r