X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/027728fede985ab729ae8f6f330ef6dbf7ea7acd..118347444f0564d427b62535a953401549063303:/app/assets/javascripts/user.js diff --git a/app/assets/javascripts/user.js b/app/assets/javascripts/user.js index 3803e180f..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() { @@ -125,7 +125,11 @@ $(document).ready(function () { $("#contributorTerms").load(url); }); - $("#read_tou").on("click", function () { - $("#agree").prop("disabled", !$(this).prop("checked")); + $("#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"))); }); });