]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3904 Enter key adds input rows where it shouldn't
authorDavid Gageot <david@gageot.net>
Mon, 29 Oct 2012 13:27:27 +0000 (14:27 +0100)
committerDavid Gageot <david@gageot.net>
Mon, 29 Oct 2012 13:31:45 +0000 (14:31 +0100)
sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb

index 7ca186d53043d1c0d3d7a46322d0f18f314441f8..edec9c6a421a89eb87d5721f1b4da669bbc72bf8 100644 (file)
     template.clone().insertBefore(template).show();
     return false;
   });
+  $j('form').live('keypress', function (e) {
+    if (e.which == 13) {
+      submit_settings.click();
+      return false;
+    }
+  });
 </script>