X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/cd43529cc8d9b8c020117fd5d690a64f2f0464b9..a14abfe90bb5d5145049b06e83be5d752145bb6a:/app/views/user/new.html.erb diff --git a/app/views/user/new.html.erb b/app/views/user/new.html.erb index e8400eb90..71d3e875b 100644 --- a/app/views/user/new.html.erb +++ b/app/views/user/new.html.erb @@ -1,4 +1,6 @@ -

<%= t 'user.new.heading' %>

+<% content_for :heading do %> +

<%= t 'user.new.heading' %>

+<% end %>

<%= t 'user.new.fill_form' %>

@@ -51,7 +53,7 @@ - <%= link_to_function(raw(t('user.new.use openid', :logo => openid_logo)), "enableOpenID()") %> + <%= link_to raw(t("user.new.use openid", :logo => openid_logo)), "#", :id => "openid_enable" %> <%= t 'user.new.openid no password' %> @@ -88,9 +90,13 @@ function disableOpenID() $("#openid_url").prop("disabled", true); } -<% if params[:openid] or (@user and @user.openid_url and not @user.openid_url.empty?) -%> -enableOpenID(); -<% else -%> -disableOpenID(); -<% end -%> +$(document).ready(function () { + $("#openid_enable").click(enableOpenID); + + <% if params[:openid] or (@user and @user.openid_url and not @user.openid_url.empty?) -%> + enableOpenID(); + <% else -%> + disableOpenID(); + <% end -%> +});