From 01f2211c11b709e1923a778b9a47477f49645970 Mon Sep 17 00:00:00 2001 From: Erik Hanchett Date: Thu, 24 Aug 2017 04:53:14 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20field=20focus=20when=20add?= =?UTF-8?q?ing=20navigation=20items=20(#835)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes TryGhost/Ghost#8764 - when adding a new nav item in the `design` controller, use jQuery to give focus to the name field of the last navigation item --- ghost/admin/app/controllers/settings/design.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ghost/admin/app/controllers/settings/design.js b/ghost/admin/app/controllers/settings/design.js index 0fbcf9e991..a3502fd7ed 100644 --- a/ghost/admin/app/controllers/settings/design.js +++ b/ghost/admin/app/controllers/settings/design.js @@ -64,6 +64,7 @@ export default Controller.extend({ newNavItem.set('isNew', false); navItems.pushObject(newNavItem); this.set('newNavItem', NavigationItem.create({isNew: true})); + $('.gh-blognav-line:last input:first').focus(); }, _deleteTheme() {