-<script type="text/javascript">
-function openid_signin(provider)
-{
- if (provider == 'google') {
- document.forms[0].user_openid_url.value="gmail.com";
- document.forms[0].submit();
- } else if (provider == 'yahoo') {
- document.forms[0].user_openid_url.value="yahoo.com";
- document.forms[0].submit();
- } else if (provider == 'myopenid') {
- document.forms[0].user_openid_url.value="myopenid.com";
- document.forms[0].submit();
- } else if (provider == 'wordpress') {
- document.forms[0].user_openid_url.value="wordpress.com";
- document.forms[0].submit();
- } else if (provider == 'myspace') {
- document.forms[0].user_openid_url.value="myspace.com";
- document.forms[0].submit();
- } else if (provider == 'openid') {
- document.forms[0].user_openid_url.value="http://";
- }
-
-}
-</script>
+<%= javascript_include_tag 'openID.js' %>
<h1><%= t 'user.login.heading' %></h1>
<%= image_tag "openid-16x16.gif", :alt => t('user.login.openid_logo_alt') %>
<%= t 'user.login.openid' %>
</td>
- <td><%= text_field('user', 'openid_url',{:size => 28, :maxlength => 255, :tabindex => 3}) %></td>
+ <td><%= text_field('user', 'openid_url',{:size => 28, :maxlength => 255, :tabindex => 3, :class => "openid_url"}) %></td>
</tr>
<tr>
<td></td>
</a>
<a href="javascript: openid_signin('google');" title="<%= h(t 'user.login.openid_providers.google.title') %>">
<%= image_tag "google.png", :alt => t('user.login.openid_providers.google.alt') %>
- </a><b>
+ </a>
<a href="javascript: openid_signin('myopenid');" title="<%= h(t 'user.login.openid_providers.myopenid.title') %>">
<%= image_tag "myopenid.png", :alt => t('user.login.openid_providers.myopenid.alt') %>
</a>
</a>
<a href="javascript: openid_signin('myspace');" title="<%= h(t 'user.login.openid_providers.myspace.title') %>">
<%= image_tag "myspace.png", :alt => t('user.login.openid_providers.myspace.alt') %>
- </a><b>
+ </a>
</div>
<div style="clear: both">