editor: focus the name input when saving a nameless style

This commit is contained in:
tophf 2017-09-01 12:27:59 +03:00
parent 874088e067
commit 1f237a98eb

View File

@ -1484,6 +1484,7 @@ function updateTitle() {
function validate() { function validate() {
const name = $('#name').value; const name = $('#name').value;
if (name === '') { if (name === '') {
$('#name').focus();
return t('styleMissingName'); return t('styleMissingName');
} }
// validate the regexps // validate the regexps