New CSS for the login modal
[citadel.git] / webcit / static / authmethods.js
index 57550687a0f177cd6a90f2dcd339337113e2a747..3709669d0151e00bbe95789d44942790f5fdb26f 100644 (file)
@@ -62,3 +62,12 @@ function ajax_try_username_and_password(destination_url) {
                }
        });
 }
+
+/*
+ * tab handler for the login box
+ */
+function authtoggle(show_which_div) {
+       $('authbox_userpass').style.display = 'none';
+       $('authbox_openid').style.display = 'none';
+       $(show_which_div).style.display = 'block';
+}