Forgott to commit a javascript file
authorKai Krueger <kai@aiputerlx.(none)>
Sat, 1 May 2010 18:03:31 +0000 (19:03 +0100)
committerKai Krueger <kai@aiputerlx.(none)>
Sat, 1 May 2010 18:03:31 +0000 (19:03 +0100)
public/javascripts/openID.js [new file with mode: 0644]

diff --git a/public/javascripts/openID.js b/public/javascripts/openID.js
new file mode 100644 (file)
index 0000000..bc88766
--- /dev/null
@@ -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 = "";
+}