summaryrefslogtreecommitdiff
path: root/modules/path/path.js
blob: e801a9a261af25d73951c470073fb37c49c6d427 (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).setSummary(function(context) {
      var path = $('#edit-path-1').val();

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

})(jQuery);