diff options
author | Julien Tant <julien@craftyx.fr> | 2018-08-14 08:10:26 +0200 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-08-14 09:10:26 +0300 |
commit | e6777f7b9d9a3552be3a1baa3fbadadd5f3acba9 (patch) | |
tree | 76b1867e92d134d3f0743eaadc217508694c9e92 | |
parent | df0eb7372cb647ae2c657ad9d4e55283622f97fc (diff) | |
download | gitea-e6777f7b9d9a3552be3a1baa3fbadadd5f3acba9.tar.gz gitea-e6777f7b9d9a3552be3a1baa3fbadadd5f3acba9.zip |
Focus title input when clicking helper link (#4696)
-rw-r--r-- | public/js/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js index a4702a4138..c90e129ce3 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) { |