diff options
Diffstat (limited to 'modules/path/path.js')
-rw-r--r-- | modules/path/path.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/path/path.js b/modules/path/path.js new file mode 100644 index 000000000..e801a9a26 --- /dev/null +++ b/modules/path/path.js @@ -0,0 +1,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); |