Copybara bot | be50d49 | 2023-11-30 00:16:42 +0100 | [diff] [blame] | 1 | window.addEventListener("load", function() { |
2 | document.querySelectorAll("tr[data-person-id]").forEach(tr => { | ||||
3 | var checkbox = tr.querySelector("input[type=\"checkbox\"]"); | ||||
4 | |||||
5 | checkbox.setAttribute("name", "people[]"); | ||||
6 | checkbox.setAttribute("value", tr.getAttribute("data-person-id")); | ||||
7 | }); | ||||
8 | }); |