From a4816a7b723ca0e85b70bd6711bc53a28a93435c Mon Sep 17 00:00:00 2001 From: Benjamin Runnels Date: Thu, 10 Dec 2015 09:44:43 -0600 Subject: [PATCH] Switched from event.srcElement to event.target for better browser compatibility --- html/services.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")