From 2712bb68289b2b5071dbf653305336db60fe1d08 Mon Sep 17 00:00:00 2001 From: Felix Rieseberg Date: Sun, 3 Aug 2014 00:27:42 -0700 Subject: [PATCH] Autofocus on input fields after routing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes #3538, closes #3541 - The “autofocus” property isn’t considered by browsers if the element is created after the page has been loaded. The Ember cookbook recommends extending the input type with a manually triggered autofocus, which I included here. - This introduces the new helper “gh-focus-input”, an input field gaining focus even when routing occurs. --- ghost/admin/templates/forgotten.hbs | 3 ++- ghost/admin/templates/signin.hbs | 3 ++- ghost/admin/templates/signup.hbs | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ghost/admin/templates/forgotten.hbs b/ghost/admin/templates/forgotten.hbs index bb0fbad5ad..44bd958310 100644 --- a/ghost/admin/templates/forgotten.hbs +++ b/ghost/admin/templates/forgotten.hbs @@ -1,7 +1,8 @@
diff --git a/ghost/admin/templates/signin.hbs b/ghost/admin/templates/signin.hbs index caa4f6552f..e27fdd767b 100644 --- a/ghost/admin/templates/signin.hbs +++ b/ghost/admin/templates/signin.hbs @@ -1,7 +1,8 @@