From c104e7f51718da3737b9e0f08fb85cee4315e95c Mon Sep 17 00:00:00 2001 From: cobbspur Date: Mon, 3 Aug 2015 09:14:39 +0100 Subject: [PATCH] Enter key submits form in setup step 2 Issue #5315 - adds gh-input enter event to trigger setup action - removes html for unused password strength hint --- core/client/app/templates/setup/two.hbs | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/core/client/app/templates/setup/two.hbs b/core/client/app/templates/setup/two.hbs index 319b9d781a..740e299e31 100644 --- a/core/client/app/templates/setup/two.hbs +++ b/core/client/app/templates/setup/two.hbs @@ -11,35 +11,28 @@ {{#gh-form-group errors=errors property="email"}} - {{gh-input type="email" name="email" placeholder="Eg. john@example.com" class="gh-input" autofocus="autofocus" autocorrect="off" value=email focusOut=(action "handleEmail")}} + {{gh-input type="email" name="email" enter=(action "setup") placeholder="Eg. john@example.com" class="gh-input" autofocus="autofocus" autocorrect="off" value=email focusOut=(action "handleEmail")}} {{gh-error-message errors=errors property="email"}} {{/gh-form-group}} {{#gh-form-group errors=errors property="name"}} - {{gh-input type="text" name="name" placeholder="Eg. John H. Watson" class="gh-input" autofocus="autofocus" autocorrect="off" value=name focusOut=(action "validate" "name")}} + {{gh-input type="text" name="name" enter=(action "setup") placeholder="Eg. John H. Watson" class="gh-input" autofocus="autofocus" autocorrect="off" value=name focusOut=(action "validate" "name")}} {{gh-error-message errors=errors property="name"}} {{/gh-form-group}} {{#gh-form-group errors=errors property="password"}} - {{gh-input type="password" name="password" placeholder="At least 8 characters" class="gh-input" autofocus="autofocus" autocorrect="off" value=password focusOut=(action "validate" "password")}} -
-
-
-
-
-
-
+ {{gh-input type="password" name="password" enter=(action "setup") placeholder="At least 8 characters" class="gh-input" autofocus="autofocus" autocorrect="off" value=password focusOut=(action "validate" "password")}}
{{gh-error-message errors=errors property="password"}} {{/gh-form-group}} {{#gh-form-group errors=errors property="blogTitle"}} - {{gh-input type="text" name="blog-title" placeholder="Eg. The Daily Awesome" class="gh-input" autofocus="autofocus" autocorrect="off" value=blogTitle focusOut=(action "validate" "blogTitle")}} + {{gh-input type="text" name="blog-title" enter=(action "setup") placeholder="Eg. The Daily Awesome" class="gh-input" autofocus="autofocus" autocorrect="off" value=blogTitle focusOut=(action "validate" "blogTitle")}} {{gh-error-message errors=errors property="blogTitle"}} {{/gh-form-group}}