X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/a37e1b8f7035bfac0e38f5b95ea643c601e1c9b1..3121d1b5a09a11791ecb002a53f415d3bfaf5a8d:/app/helpers/user_helper.rb diff --git a/app/helpers/user_helper.rb b/app/helpers/user_helper.rb index 8686d5a03..7a9a75c31 100644 --- a/app/helpers/user_helper.rb +++ b/app/helpers/user_helper.rb @@ -6,11 +6,8 @@ module UserHelper def openid_button(name, url) link_to_function( image_tag("#{name}.png", :alt => t("user.login.openid_providers.#{name}.alt")), - nil, + "submitOpenidUrl('#{url}')", :title => t("user.login.openid_providers.#{name}.title") - ) do |page| - page[:login_form][:openid_url][:value] = url - page[:login_form].submit() - end + ) end end