X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1f9857e76c2abb8d1e3c9046480a9878004451f7..6c0501d62a72fe217c522bcbf0017926c7e30fd6:/app/assets/javascripts/user.js diff --git a/app/assets/javascripts/user.js b/app/assets/javascripts/user.js index 7e7e7c803..44872a78c 100644 --- a/app/assets/javascripts/user.js +++ b/app/assets/javascripts/user.js @@ -103,4 +103,20 @@ $(document).ready(function () { } else { enableAuth(); } + + $("#user_all").change(function () { + $("#user_list input[type=checkbox]").prop("checked", $("#user_all").prop("checked")); + }); + + $("#content.user_confirm").each(function () { + $(this).hide(); + $(this).find("#confirm").submit(); + }); + + $("input[name=legale]").change(function () { + var url = $(this).data("url"); + + $("#contributorTerms").html(""); + $("#contributorTerms").load(url); + }); });