]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user/terms.html.erb
Add support for domain based ACLs
[rails.git] / app / views / user / terms.html.erb
index eab21e455684e433afa60fd18d586575dfaa5330..849005274fc0e2ccdef8c0b867497c925b567fa5 100644 (file)
       <%= label_tag "legale_#{legale}", t('user.terms.legale_names.' + name) %>
       <script type="text/javascript">
       <!--
-        $("legale_<%= legale %>").observe("change", function () {
-          <%= remote_function(
-                :before => update_page do |page|
-                  page.replace_html 'contributorTerms', image_tag('searching.gif')
-                end,
-                :url => { :legale => legale }
-              )
-          %>
+        $("#legale_<%= legale %>").change(function () {
+          $("#contributorTerms").html("<%=j image_tag 'searching.gif' %>");
+          $("#contributorTerms").load("<%= url_for :legale => legale %>");
         });
       // -->
       </script>
@@ -52,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 %>