]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/users/terms.html.erb
Move onclick handling of tou checkbox to ujs
[rails.git] / app / views / users / terms.html.erb
index 18b86dd12582aa50c9415928dd9b0dfbf0ef2641..7a6acbf592a4af8bf2aea1e8127833b6199f4831 100644 (file)
@@ -47,7 +47,7 @@
   <p class="deemphasize"><%= t '.tou_explain' %></p>
   <div class="form-row">
     <label for="read_tou">
-      <%= check_box_tag 'read_tou',1,false,:onclick=>"agreebtn = document.getElementById('agree');agreebtn.disabled=!this.checked;"%>
+      <%= check_box_tag 'read_tou',1,false %>
       <%= t '.read_tou_html', :tou_link => link_to(t('layouts.tou'), "https://wiki.osmfoundation.org/wiki/Terms_of_Use", :target => :new) %>
     </label>