From: Stas Vilchik Date: Thu, 6 Feb 2014 09:36:35 +0000 (+0600) Subject: New Issues Page: autofocus comment textarea X-Git-Tag: 4.2~228 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=40b340a35e825c0e685fb9c4780d268abe44b5e3;p=sonarqube.git New Issues Page: autofocus comment textarea --- diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/issues/templates/_issue_detail_comment_form.hbs.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/issues/templates/_issue_detail_comment_form.hbs.erb index 78ce1af9e76..f408ed8a10f 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/issues/templates/_issue_detail_comment_form.hbs.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/issues/templates/_issue_detail_comment_form.hbs.erb @@ -2,8 +2,7 @@ diff --git a/sonar-server/src/main/webapp/javascripts/navigator/issues.js b/sonar-server/src/main/webapp/javascripts/navigator/issues.js index 778dd8f7d5d..e2680c54472 100644 --- a/sonar-server/src/main/webapp/javascripts/navigator/issues.js +++ b/sonar-server/src/main/webapp/javascripts/navigator/issues.js @@ -494,6 +494,11 @@ jQuery(function() { }, + onDomRefresh: function() { + this.ui.textarea.focus(); + }, + + toggleSubmit: function() { this.ui.submitButton.prop('disabled', this.ui.textarea.val().length === 0); },
- +