X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5bd59e19368d8761a7dbaa5db0e8833174c11f36..c5fc9f0e7e93088c599ae0d8540ee0117f277d6d:/app/assets/javascripts/user.js diff --git a/app/assets/javascripts/user.js b/app/assets/javascripts/user.js index f898455b5..7cbdb1e11 100644 --- a/app/assets/javascripts/user.js +++ b/app/assets/javascripts/user.js @@ -85,8 +85,8 @@ $(document).ready(function () { $("select#user_auth_provider").on("change", updateAuthUID); - $("input#user_image").on("change", function () { - $("#image_action_new").prop("checked", true); + $("input#user_avatar").on("change", function () { + $("#avatar_action_new").prop("checked", true); }); function enableAuth() { @@ -124,4 +124,12 @@ $(document).ready(function () { $("#contributorTerms").html(""); $("#contributorTerms").load(url); }); + + $("#read_ct").on("click", function () { + $("#continue").prop("disabled", !($(this).prop("checked") && $("#read_tou").prop("checked"))); + }); + + $("#read_tou").on("click", function () { + $("#continue").prop("disabled", !($(this).prop("checked") && $("#read_ct").prop("checked"))); + }); });