Skip to content

Commit

Permalink
Merge pull request #2310 from jwu910/autofocus-domain-whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
yubiuser authored Aug 25, 2022
2 parents c6af559 + fb1a017 commit 31bfeb5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/pi-hole/js/customcname.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ function addCustomCNAME() {
$("#domain").val("");
$("#target").val("");
table.ajax.reload();
$("#domain").focus();
} else {
utils.showAlert("error", "fas fa-times", "Failure! Something went wrong", response.message);
}
Expand Down
1 change: 1 addition & 0 deletions scripts/pi-hole/js/customdns.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ function addCustomDNS() {
$("#domain").val("");
$("#ip").val("");
table.ajax.reload();
$("#domain").focus();
} else {
utils.showAlert("error", "fas fa-times", "Failure! Something went wrong", response.message);
}
Expand Down
1 change: 1 addition & 0 deletions scripts/pi-hole/js/groups-adlists.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ function addAdlist() {
$("#new_comment").val("");
table.ajax.reload();
table.rows().deselect();
$("#new_address").focus();
} else {
utils.showAlert("error", "", "Error while adding new adlist: ", response.message);
}
Expand Down
1 change: 1 addition & 0 deletions scripts/pi-hole/js/groups-domains.js
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,7 @@ function addDomain() {
wildcardEl.prop("checked", false);
table.ajax.reload(null, false);
table.rows().deselect();
domainEl.focus();
} else {
utils.showAlert("error", "", "Error while adding new " + domainRegex, response.message);
}
Expand Down
1 change: 1 addition & 0 deletions scripts/pi-hole/js/groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ function addGroup() {
$("#new_desc").val("");
table.ajax.reload();
table.rows().deselect();
$("#new_name").focus();
} else {
utils.showAlert("error", "", "Error while adding new group", response.message);
}
Expand Down

0 comments on commit 31bfeb5

Please sign in to comment.