end
def openid_button(name, url)
- link_to_function(
+ link_to(
image_tag("#{name}.png", :alt => t("user.login.openid_providers.#{name}.alt")),
- "submitOpenidUrl('#{url}')",
+ "#",
+ :class => "openid_button", :data => { :url => url },
:title => t("user.login.openid_providers.#{name}.title")
)
end