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