mirror of
https://github.com/tag1consulting/d7_to_d10_migration.git
synced 2024-12-01 17:53:26 +00:00
22 lines
420 B
JavaScript
22 lines
420 B
JavaScript
|
|
||
|
/**
|
||
|
* @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);
|