X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1f9857e76c2abb8d1e3c9046480a9878004451f7..aa1fb6dbb8c2e71b8ce8c231ae1272a2dfebd75a:/app/assets/javascripts/user.js diff --git a/app/assets/javascripts/user.js b/app/assets/javascripts/user.js index 7e7e7c803..1c73d3430 100644 --- a/app/assets/javascripts/user.js +++ b/app/assets/javascripts/user.js @@ -28,6 +28,7 @@ $(document).ready(function () { .removeClass('leaflet-control-locate leaflet-bar') .addClass('control-locate') .children("a") + .attr('href', '#') .removeClass('leaflet-bar-part leaflet-bar-part-single') .addClass('control-button'); @@ -103,4 +104,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); + }); });