diff --git a/html/services.js b/html/services.js index 0880f85..b44ec88 100644 --- a/html/services.js +++ b/html/services.js @@ -1,7 +1,7 @@ function changeServices(e) { e.preventDefault(); var url = "services/update?1=1"; - var i, inputs = document.querySelectorAll("#" + e.srcElement.id + " input,select"); + var i, inputs = document.querySelectorAll("#" + e.target.id + " input,select"); for (i = 0; i < inputs.length; i++) { if (inputs[i].type == "checkbox") { if (inputs[i].name.slice(-6) == "enable")