/[drupal]/contributions/modules/openid/openid.js
ViewVC logotype

Contents of /contributions/modules/openid/openid.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download) (as text)
Tue Jun 5 17:23:42 2007 UTC (2 years, 5 months ago) by walkah
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +10 -1 lines
File MIME type: text/javascript
Add a way to cancel back to username/login via JS
1 // $Id: openid.js,v 1.3 2007/05/27 14:19:23 walkah Exp $
2
3 $(document).ready(
4 function() {
5 if ($("#edit-openid-url").val()) {
6 $("#edit-name-wrapper").hide();
7 $("#edit-pass-wrapper").hide();
8 $("#edit-openid-url-wrapper").show();
9 $("a.openid-link").hide();
10 }
11 $("a.openid-link").click( function() {
12 $("#edit-pass-wrapper").hide();
13 $("#edit-name-wrapper").fadeOut('medium', function() {
14 $("#edit-openid-url-wrapper").fadeIn('medium');
15 });
16 $("a.openid-link").hide();
17 $("a.user-link").show();
18 return false;
19 });
20 $("a.user-link").click( function() {
21 $("#edit-openid-url-wrapper").hide();
22 $("#edit-pass-wrapper").show();
23 $("#edit-name-wrapper").show();
24 $("a.user-link").hide();
25 $("a.openid-link").show();
26 return false;
27 });
28 });
29

  ViewVC Help
Powered by ViewVC 1.1.2