$("#contributorTerms").html("<img src='" + OSM.SEARCHING + "' />");
$("#contributorTerms").load(url);
});
+
+ $("#read_tou").on("click", function () {
+ var agreebtn = document.getElementById('agree');
+ agreebtn.disabled=!this.checked;
+ });
});
<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>