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() {
const name = $('#name').value;
if (name === '') {
$('#name').focus();
return t('styleMissingName');
}
// validate the regexps