From a0417e92d145b257a41109a72decd0eda085883c Mon Sep 17 00:00:00 2001 From: Joshua Wu Date: Tue, 23 Aug 2022 21:31:34 -0700 Subject: [PATCH] Refocus the domain element after submitting new domain in list form Signed-off-by: Joshua Wu --- scripts/pi-hole/js/groups-domains.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/pi-hole/js/groups-domains.js b/scripts/pi-hole/js/groups-domains.js index c0c41698..9eaeecd5 100644 --- a/scripts/pi-hole/js/groups-domains.js +++ b/scripts/pi-hole/js/groups-domains.js @@ -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); }