changeset 541 | e756a8c72c3d |
540:07239de796bb | 541:e756a8c72c3d |
---|---|
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); |