editor: focus the name input when saving a nameless style
This commit is contained in:
parent
874088e067
commit
1f237a98eb
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user