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

Contents of /contributions/modules/logintoboggan/logintoboggan.js

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


Revision 1.3 - (show annotations) (download) (as text)
Mon Oct 19 17:48:25 2009 UTC (5 weeks, 2 days ago) by thehunmonkgroup
Branch: MAIN
CVS Tags: DRUPAL-7--1-0-ALPHA2, DRUPAL-7--1-0-ALPHA1, HEAD
Changes since 1.2: +20 -17 lines
File MIME type: text/javascript
fix login link and collapsible login block for 7.x
1 // $Id: logintoboggan.js,v 1.2 2008/06/10 20:32:28 thehunmonkgroup Exp $
2
3 (function ($) {
4 Drupal.behaviors.LoginToboggan = {
5 attach: function (context, settings) {
6 $('#toboggan-login', context).once('toggleboggan_setup', function () {
7 $(this).hide();
8 Drupal.logintoboggan_toggleboggan();
9 });
10 }
11 };
12
13 Drupal.logintoboggan_toggleboggan = function() {
14 $("#toboggan-login-link").click(
15 function () {
16 $("#toboggan-login").slideToggle("fast");
17 this.blur();
18 return false;
19 }
20 );
21 };
22 })(jQuery);

  ViewVC Help
Powered by ViewVC 1.1.2