logintoboggan.js 499 B

12345678910111213141516171819202122
  1. (function ($) {
  2. Drupal.behaviors.LoginToboggan = {
  3. attach: function (context, settings) {
  4. $('#toboggan-login', context).once('toggleboggan_setup', function () {
  5. $(this).hide();
  6. Drupal.logintoboggan_toggleboggan();
  7. });
  8. }
  9. };
  10. Drupal.logintoboggan_toggleboggan = function() {
  11. $("#toboggan-login-link").click(
  12. function () {
  13. $("#toboggan-login").slideToggle("fast");
  14. this.blur();
  15. return false;
  16. }
  17. );
  18. };
  19. })(jQuery);