]> git.openstreetmap.org Git - rails.git/blob - public/javascripts/openID.js
Merge branch 'master' into openID
[rails.git] / public / javascripts / openID.js
1 function openid_signin(provider)
2 {
3     if (provider == 'google') {
4         document.forms[0].user_openid_url.value="gmail.com";
5         document.forms[0].submit();
6     } else if (provider == 'yahoo') {
7         document.forms[0].user_openid_url.value="yahoo.com";
8         document.forms[0].submit();
9     } else if (provider == 'myopenid') {
10         document.forms[0].user_openid_url.value="myopenid.com";
11         document.forms[0].submit();
12     } else if (provider == 'wordpress') {
13         document.forms[0].user_openid_url.value="wordpress.com";
14         document.forms[0].submit();
15     } else if (provider == 'myspace') {
16         document.forms[0].user_openid_url.value="myspace.com";
17         document.forms[0].submit();
18     } else if (provider == 'openid') {
19         document.forms[0].user_openid_url.value="http://";
20     }
21
22 }