]> 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 40ca866c52d65ab7dca633b55a383780ea4186d8..69cc259f0c9e0195ecf5157ebb8d20d3e7703cac 100644 (file)
@@ -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")));
   });
 });