]> git.openstreetmap.org Git - rails.git/commitdiff
Use jquery
authorSimon Poole <simon@poole.ch>
Wed, 30 Jan 2019 09:19:21 +0000 (10:19 +0100)
committerSimon Poole <simon@poole.ch>
Mon, 13 May 2019 14:54:29 +0000 (16:54 +0200)
app/assets/javascripts/user.js

index 40ca866c52d65ab7dca633b55a383780ea4186d8..3803e180f1dc4acfda664a9892a8b40e8007a58f 100644 (file)
@@ -126,7 +126,6 @@ $(document).ready(function () {
   });
 
   $("#read_tou").on("click", function () { 
-    var agreebtn = document.getElementById('agree');
-    agreebtn.disabled=!this.checked;
+    $("#agree").prop("disabled", !$(this).prop("checked"));
   });
 });