first import
This commit is contained in:
21
modules/path/path.js
Normal file
21
modules/path/path.js
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
/**
|
||||
* @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);
|
||||
Reference in New Issue
Block a user