Browse Source

Repair test submission on Enter key

Gaël Métais 10 years ago
parent
commit
95a5f5063e
1 changed files with 4 additions and 3 deletions
  1. 4 3
      front/src/views/index.html

+ 4 - 3
front/src/views/index.html

@@ -1,4 +1,5 @@
 <h2 class="promess">Free online test to help speeding up <b>heavy</b> web pages</h2>
-<input type="text"ng-model="url" placeholder="http://www.mysite.com" class="url" />
-<input type="submit" value="Launch test" class="launchBtn" ng-click="launchTest()" ng-class="{disabled: !url}" />
-<p>(This is a BETA, your feedback is more than welcome)</p>
+<form ng-submit="launchTest()" >
+    <input type="text"ng-model="url" placeholder="http://www.mysite.com" class="url" />
+    <input type="submit" value="Launch test" class="launchBtn" ng-class="{disabled: !url}" />
+</form>