Switched from event.srcElement to event.target for better browser compatibility

pull/72/head
Benjamin Runnels 9 years ago
parent f8eb8b33e0
commit a4816a7b72
  1. 2
      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")

Loading…
Cancel
Save