]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user/terms.html.erb
Combine the address and netmask for an ACL in one column
[rails.git] / app / views / user / terms.html.erb
index db052bb24f8afdb5502d7fafd864424d92cfab26..849005274fc0e2ccdef8c0b867497c925b567fa5 100644 (file)
@@ -7,16 +7,16 @@
   <p>
     <%= t 'user.terms.legale_select' %>
     <% [['france', 'FR'], ['italy', 'IT'], ['rest_of_world', 'GB']].each do |name,legale| %>
-      <%=
-        radio_button_tag 'legale', legale, @legale == legale,
-          :onchange => remote_function(
-            :before => update_page do |page|
-              page.replace_html 'contributorTerms', image_tag('searching.gif')
-            end,
-            :url => {:legale => legale}
-          )
-      %>
+      <%= radio_button_tag 'legale', legale, @legale == legale %>
       <%= label_tag "legale_#{legale}", t('user.terms.legale_names.' + name) %>
+      <script type="text/javascript">
+      <!--
+        $("#legale_<%= legale %>").change(function () {
+          $("#contributorTerms").html("<%=j image_tag 'searching.gif' %>");
+          $("#contributorTerms").load("<%= url_for :legale => legale %>");
+        });
+      // -->
+      </script>
     <% end %>
   </p>
 <% end %>
@@ -47,5 +47,5 @@
     </div>
   </p>
   <br clear="all" />
-  <p id="contributorGuidance"><%= t 'user.terms.guidance', :summary => 'http://www.osmfoundation.org/wiki/License/Contributor_Terms_Summary', :translations => 'http://www.osmfoundation.org/wiki/License/Contributor_Terms/Informal_Translations' %></p>
+  <p id="contributorGuidance"><%= raw t 'user.terms.guidance', :summary => 'http://www.osmfoundation.org/wiki/License/Contributor_Terms_Summary', :translations => 'http://www.osmfoundation.org/wiki/License/Contributor_Terms/Informal_Translations' %></p>
 <% end %>