From bfb1f2a57504b1d44d436150432bb0e0483bee4d Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 22 Aug 2011 11:40:08 +0100 Subject: [PATCH] Disable the openid_url field when it isn't shown --- app/views/user/new.html.erb | 42 ++++++++++++++++++++++++++----------- 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/app/views/user/new.html.erb b/app/views/user/new.html.erb index 59aa7410e..f9d77a22b 100644 --- a/app/views/user/new.html.erb +++ b/app/views/user/new.html.erb @@ -59,7 +59,7 @@ - <%= link_to_function(t('user.new.use openid', :logo => openid_logo)) { |page| page.hide 'openid_prompt'; page.show 'openid_spacer', 'openid_field', 'openid_note' } %> + <%= link_to_function(t('user.new.use openid', :logo => openid_logo), "enableOpenID()") %> <%= t 'user.new.openid no password' %> @@ -73,17 +73,35 @@ <% end %> -<%= - update_page_tag do |page| - if params[:openid] or (@user and @user.openid_url and not @user.openid_url.empty?) - page[:openid_prompt].hide - else - page[:openid_spacer].hide - page[:openid_field].hide - page[:openid_note].hide - end - end -%> + <%= javascript_include_tag 'https://ethnio.com/remotes/62786' %> -- 2.39.5