From 1f237a98eb0d46351cdd7e40e3b47415e6125858 Mon Sep 17 00:00:00 2001 From: tophf Date: Fri, 1 Sep 2017 12:27:59 +0300 Subject: [PATCH] editor: focus the name input when saving a nameless style --- edit/edit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/edit/edit.js b/edit/edit.js index af23297d..36451969 100644 --- a/edit/edit.js +++ b/edit/edit.js @@ -1484,6 +1484,7 @@ function updateTitle() { function validate() { const name = $('#name').value; if (name === '') { + $('#name').focus(); return t('styleMissingName'); } // validate the regexps