path.js 420 B

123456789101112131415161718192021
  1. /**
  2. * @file
  3. * Attaches behaviors for the Path module.
  4. */
  5. (function ($) {
  6. Drupal.behaviors.pathFieldsetSummaries = {
  7. attach: function (context) {
  8. $('fieldset.path-form', context).drupalSetSummary(function (context) {
  9. var path = $('.form-item-path-alias input').val();
  10. return path ?
  11. Drupal.t('Alias: @alias', { '@alias': path }) :
  12. Drupal.t('No alias');
  13. });
  14. }
  15. };
  16. })(jQuery);