]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/user.js
Allow a configurable delay to keep diary entries from being published in feeds
[rails.git] / app / assets / javascripts / user.js
index 3803e180f1dc4acfda664a9892a8b40e8007a58f..69cc259f0c9e0195ecf5157ebb8d20d3e7703cac 100644 (file)
@@ -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")));
   });
 });