From: John Firebaugh Date: Thu, 1 Aug 2013 18:22:29 +0000 (-0700) Subject: Clean up X-Git-Tag: live~5316^2~20 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/6ab52cd256200176b5d37cbf8b2d65b89e61762c Clean up --- diff --git a/app/views/user/new.html.erb b/app/views/user/new.html.erb index 82d1b5d9c..51808562f 100644 --- a/app/views/user/new.html.erb +++ b/app/views/user/new.html.erb @@ -22,7 +22,7 @@ <%= email_field(:user, :email_confirmation, { :tabindex => 2 }) %> - <%= raw(t 'user.new.not displayed publicly') %> + <%= raw(t 'user.new.not displayed publicly') %>
@@ -42,9 +42,7 @@ <%= url_field(:user, :openid_url, { :id => "openid_url", :tabindex => 4, :class => "openid_url" }) %> - - <%= t 'user.new.openid no password' %> - + <%= t 'user.new.openid no password' %>
@@ -78,27 +76,21 @@ function enableOpenID() { $("#openid_prompt").hide(); - $("#openid_field").show(); - $("#openid_note").show(); - $("#openid_url").prop("disabled", false); } function disableOpenID() { $("#openid_prompt").show(); - $("#openid_field").hide(); - $("#openid_note").hide(); - $("#openid_url").prop("disabled", true); } $(document).ready(function () { $("#openid_enable").click(enableOpenID); - <% if params[:openid] or (@user and @user.openid_url and not @user.openid_url.empty?) -%> + <% if params[:openid] or (@user and @user.openid_url.present?) -%> enableOpenID(); <% else -%> disableOpenID();