diff options
author | David Gageot <david@gageot.net> | 2012-10-29 14:27:27 +0100 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2012-10-29 14:31:45 +0100 |
commit | 52269fe6503177c90a2d1e24fe2fb21ad0c5bf03 (patch) | |
tree | bc15059a13684376e293a8edca63eb9ce4c1cdff | |
parent | cf40d9c4daa576f4f210108f6bf43a291c43c8f5 (diff) | |
download | sonarqube-52269fe6503177c90a2d1e24fe2fb21ad0c5bf03.tar.gz sonarqube-52269fe6503177c90a2d1e24fe2fb21ad0c5bf03.zip |
SONAR-3904 Enter key adds input rows where it shouldn't
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb | 6 |
1 files changed, 6 insertions, 0 deletions
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; + } + }); </script> |