From 1a8d73c0244a1455fc0d2fc24f1cbefdebedf1a1 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 4 Sep 2010 00:11:16 +0100 Subject: [PATCH] Use an observer to detect changes to the selected legale --- app/views/user/terms.html.erb | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/app/views/user/terms.html.erb b/app/views/user/terms.html.erb index db052bb24..eab21e455 100644 --- a/app/views/user/terms.html.erb +++ b/app/views/user/terms.html.erb @@ -7,16 +7,21 @@

<%= 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) %> + <% end %>

<% end %> -- 2.39.5