]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/user.js
Add checkbox for contributor terms and improve text
[rails.git] / app / assets / javascripts / user.js
index 3803e180f1dc4acfda664a9892a8b40e8007a58f..13941d6f3e0c3e192b4d0028c16d6adbca828934 100644 (file)
@@ -125,7 +125,11 @@ $(document).ready(function () {
     $("#contributorTerms").load(url);
   });
 
+  $("#read_ct").on("click", function () { 
+    $("#continue").prop("disabled", !($(this).prop("checked") && $("#read_tou").prop("checked")));
+  });
+
   $("#read_tou").on("click", function () { 
-    $("#agree").prop("disabled", !$(this).prop("checked"));
+    $("#continue").prop("disabled", !($(this).prop("checked") && $("#read_ct").prop("checked")));
   });
 });