summaryrefslogtreecommitdiff
path: root/modules/path/path.js
blob: e065d94b559014bd48c994ff78550da68bc7f542 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// $Id$

(function ($) {

Drupal.behaviors.pathFieldsetSummaries = {
  attach: function (context) {
    $('fieldset#edit-path', context).drupalSetSummary(function (context) {
      var path = $('#edit-path-alias').val();

      return path ?
        Drupal.t('Alias: @alias', { '@alias': path }) :
        Drupal.t('No alias');
    });
  }
};

})(jQuery);