Forgott to commit a javascript file
This commit is contained in:
parent
799bbc3d9f
commit
2b21b7f841
1 changed files with 27 additions and 0 deletions
27
public/javascripts/openID.js
Normal file
27
public/javascripts/openID.js
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
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://";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function unhideopenID() {
|
||||||
|
document.getElementById("openID_row-1").style.display = "";
|
||||||
|
document.getElementById("openID_row-2").style.display = "";
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue