Index: openid/openid.js
===================================================================
RCS file: /cvs/drupal/drupal/modules/openid/openid.js,v
retrieving revision 1.4
diff -u -p -r1.4 openid.js
--- openid/openid.js	20 Nov 2007 10:00:04 -0000	1.4
+++ openid/openid.js	10 Feb 2008 21:59:23 -0000
@@ -1,7 +1,7 @@
 // $Id: openid.js,v 1.4 2007/11/20 10:00:04 goba Exp $
 
 Drupal.behaviors.openid = function (context) {
-  var $loginElements = $("#edit-name-wrapper, #edit-pass-wrapper, a.openid-link");
+  var $loginElements = $(".openid-hideable, a.openid-link");
   var $openidElements = $("#edit-openid-url-wrapper, a.user-link");
 
   // This behavior attaches by ID, so is only valid once on a page.
Index: openid/openid.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/openid/openid.module,v
retrieving revision 1.16
diff -u -p -r1.16 openid.module
--- openid/openid.module	10 Jan 2008 15:03:53 -0000	1.16
+++ openid/openid.module	10 Feb 2008 21:59:23 -0000
@@ -84,6 +84,13 @@ function openid_form_alter(&$form, $form
       unset($form['#submit']);
       $form['#validate'] = array('openid_login_validate');
     }
+    else {
+      $form['name']['#prefix'] = '<div class="openid-hideable">';
+      $form['name']['#suffix'] = '</div>';
+      $form['pass']['#prefix'] = '<div class="openid-hideable">';
+      $form['pass']['#suffix'] = '</div>';
+    }
+    
 
     $form['openid_link'] = array('#value' => l(t('Log in using OpenID'), '#', array('attributes' => array('class' => 'openid-link'))), '#weight' => 3);
     $form['user_link'] = array('#value' => l(t('Cancel OpenID login'), '#', array('attributes' => array('class' => 'user-link'))), '#weight' => 3);
@@ -501,4 +508,4 @@ function openid_verify_assertion($op_end
     module_invoke('system', 'check_http_request');
   }
   return $valid;
-}
+}
\ No newline at end of file
