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() {
|
||||
const name = $('#name').value;
|
||||
if (name === '') {
|
||||
$('#name').focus();
|
||||
return t('styleMissingName');
|
||||
}
|
||||
// validate the regexps
|
||||
|
|
Loading…
Reference in New Issue
Block a user