Refocus textbox after save/reset
This commit is contained in:
parent
e96f0808ed
commit
1a384142ba
|
@ -307,6 +307,7 @@ function setupLinterSettingsEvents(popup) {
|
|||
} else {
|
||||
showLinterErrorMessage(linter, t('setLinterError'));
|
||||
}
|
||||
popup.codebox.focus();
|
||||
});
|
||||
$('.reset', popup).addEventListener('click', event => {
|
||||
event.preventDefault();
|
||||
|
@ -320,6 +321,7 @@ function setupLinterSettingsEvents(popup) {
|
|||
rules = csslintDefaultRuleConfig;
|
||||
}
|
||||
popup.codebox.setValue(stringifyRules(rules));
|
||||
popup.codebox.focus();
|
||||
updateLinter(linter);
|
||||
});
|
||||
$('.cancel', popup).addEventListener('click', event => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user