Projet

Général

Profil

Paste
Télécharger (618 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / l10n_update / js / l10n_update.js @ 503b3f7b

1
(function ($) {
2

    
3
Drupal.behaviors.l10nUpdateCollapse = {
4
  attach: function (context, settings) {
5
    $('.l10n-update .l10n-update-wrapper', context).once('l10nupdatecollapse', function () {
6
      var wrapper = $(this);
7

    
8
      // Turn the project title into a clickable link.
9
      // Add an event to toggle the content visibiltiy.
10
      var $legend = $('.project-title', this);
11
      var $link = $('<a href="#"></a>')
12
        .prepend($legend.contents())
13
        .appendTo($legend)
14
        .click(function () {
15
          Drupal.toggleFieldset(wrapper);
16
          return false;
17
        });
18
    });
19
  }
20
};
21

    
22
})(jQuery);