Skip to content

Commit

Permalink
Set focus to error field
Browse files Browse the repository at this point in the history
  • Loading branch information
proginosko committed Dec 6, 2017
1 parent c346fa8 commit 80ba87f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions options.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ function saveOptions() {
let warnSecs = document.querySelector("#warnSecs").value;
if (!checkPosIntFormat(warnSecs)) {
$("#tabs").tabs("option", "active", NUM_SETS);
$("warnSecs").focus();
$("#alertBadSeconds").dialog("open");
return;
}
Expand Down

0 comments on commit 80ba87f

Please sign in to comment.