From b92bb77b547010cd770e1f79b12811c7b9c43fb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20San=20Juli=C3=A1n?= Date: Fri, 31 Jul 2015 22:12:33 +0200 Subject: [PATCH] autofocus for new and edit issue forms --- public/js/app.js | 1 + templates/repo/issue/create.tmpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public/js/app.js b/public/js/app.js index 61539148e9b..6208dbedc86 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -770,6 +770,7 @@ function initIssue() { $("#issue-edit-btn").on("click", function () { $('#issue h1.title,#issue .issue-main > .issue-content .content,#issue-edit-btn').toggleHide(); $('#issue-edit-title,.issue-edit-content,.issue-edit-cancel,.issue-edit-save').toggleShow(); + $('#issue-edit-content').focus(); }); $('.issue-edit-cancel').on("click", function () { $('#issue h1.title,#issue .issue-main > .issue-content .content,#issue-edit-btn').toggleShow(); diff --git a/templates/repo/issue/create.tmpl b/templates/repo/issue/create.tmpl index ed7ba3559cd..de0c47ac20e 100644 --- a/templates/repo/issue/create.tmpl +++ b/templates/repo/issue/create.tmpl @@ -12,7 +12,7 @@
- +
{{if .IsRepositoryOwner}}