code cosmetics

This commit is contained in:
tophf 2020-10-11 13:48:02 +03:00
parent f54a9eab29
commit c9b69fd1fc

View File

@ -375,7 +375,8 @@ function createSection({
} }
$('.add-applies-to', el).addEventListener('click', e => { $('.add-applies-to', el).addEventListener('click', e => {
e.preventDefault(); e.preventDefault();
$('input', insertApplyAfter({type, value: ''}, apply).el).focus(); const newApply = insertApplyAfter({type, value: ''}, apply);
$('input', newApply.el).focus();
}); });
return apply; return apply;