Projet

Général

Profil

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

root / drupal7 / modules / path / path.js @ 01dfd3b5

1

    
2
/**
3
 * @file
4
 * Attaches behaviors for the Path module.
5
 */
6

    
7
(function ($) {
8

    
9
Drupal.behaviors.pathFieldsetSummaries = {
10
  attach: function (context) {
11
    $('fieldset.path-form', context).drupalSetSummary(function (context) {
12
      var path = $('.form-item-path-alias input').val();
13

    
14
      return path ?
15
        Drupal.t('Alias: @alias', { '@alias': path }) :
16
        Drupal.t('No alias');
17
    });
18
  }
19
};
20

    
21
})(jQuery);