X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ce7b651eb25473b74765ccb349f37ebd4ea6edfe..425878bf3e5b0e5e40f0603398061e1848605344:/app/views/user/new.html.erb diff --git a/app/views/user/new.html.erb b/app/views/user/new.html.erb index 4e3f4428d..730676355 100644 --- a/app/views/user/new.html.erb +++ b/app/views/user/new.html.erb @@ -41,9 +41,9 @@   - + <%= t 'user.new.openid', :logo => openid_logo %> - <%= text_field(:user, :openid_url, { :size => 50, :maxlength => 255, :tabindex => 4, :value => params[:openid], :class => "openid_url" }) %> + <%= text_field(:user, :openid_url, { :id => "openid_url", :size => 50, :maxlength => 255, :tabindex => 4, :value => params[:openid], :class => "openid_url" }) %>   @@ -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_url', 'openid_note' } %> + <%= link_to_function(t('user.new.use openid', :logo => openid_logo), "enableOpenID()") %> <%= t 'user.new.openid no password' %> @@ -68,23 +68,39 @@ - <%= submit_tag t('user.new.continue'), :tabindex => 6 %> + <%= submit_tag t('user.new.continue'), :tabindex => 6 %> <% end %> -<%= - update_page_tag do |page| - if params[:openid] or (@user and @user.openid_url) - page[:openid_prompt].hide - else - page[:openid_spacer].hide - page[:openid_url].hide - page[:openid_note].hide - end - end -%> - -<%= javascript_include_tag 'https://ethnio.com/remotes/62786' %> + <% end %>