diff options
Diffstat (limited to 'core/modules/path/path.js')
-rw-r--r-- | core/modules/path/path.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/modules/path/path.js b/core/modules/path/path.js new file mode 100644 index 00000000000..fcc0acc413f --- /dev/null +++ b/core/modules/path/path.js @@ -0,0 +1,16 @@ + +(function ($) { + +Drupal.behaviors.pathFieldsetSummaries = { + attach: function (context) { + $('fieldset.path-form', context).drupalSetSummary(function (context) { + var path = $('.form-item-path-alias input').val(); + + return path ? + Drupal.t('Alias: @alias', { '@alias': path }) : + Drupal.t('No alias'); + }); + } +}; + +})(jQuery); |