From: David Gageot Date: Mon, 29 Oct 2012 13:27:27 +0000 (+0100) Subject: SONAR-3904 Enter key adds input rows where it shouldn't X-Git-Tag: 3.4~428 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=52269fe6503177c90a2d1e24fe2fb21ad0c5bf03;p=sonarqube.git SONAR-3904 Enter key adds input rows where it shouldn't --- diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb index 7ca186d5304..edec9c6a421 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb @@ -76,4 +76,10 @@ template.clone().insertBefore(template).show(); return false; }); + $j('form').live('keypress', function (e) { + if (e.which == 13) { + submit_settings.click(); + return false; + } + });