From e6777f7b9d9a3552be3a1baa3fbadadd5f3acba9 Mon Sep 17 00:00:00 2001 From: Julien Tant Date: Tue, 14 Aug 2018 08:10:26 +0200 Subject: [PATCH] Focus title input when clicking helper link (#4696) --- public/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/index.js b/public/js/index.js index a4702a413..c90e129ce 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -954,7 +954,6 @@ String.prototype.endsWith = function (pattern) { } })(jQuery); - function setSimpleMDE($editArea) { if (codeMirrorEditor) { codeMirrorEditor.toTextArea(); @@ -1660,6 +1659,7 @@ function initWipTitle() { e.preventDefault(); var $issueTitle = $("#issue_title"); + $issueTitle.focus(); var value = $issueTitle.val().trim().toUpperCase(); for (var i in wipPrefixes) {