drupal-civicrm/modules/path/path.js

22 lines
420 B
JavaScript
Raw Permalink Normal View History

2018-01-14 15:10:16 +02:00
/**
* @file
* Attaches behaviors for the Path module.
*/
(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);