X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d3d03a31776ed25d2fa38d069e72bd99c0914ed1..6ed749e7ebad5eeff04ccf1a8f33c078b9f46031:/app/assets/javascripts/user.js diff --git a/app/assets/javascripts/user.js b/app/assets/javascripts/user.js index 40ca866c5..69cc259f0 100644 --- a/app/assets/javascripts/user.js +++ b/app/assets/javascripts/user.js @@ -125,8 +125,11 @@ $(document).ready(function () { $("#contributorTerms").load(url); }); - $("#read_tou").on("click", function () { - var agreebtn = document.getElementById('agree'); - agreebtn.disabled=!this.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"))); }); });