Pathauto and dependencies
This commit is contained in:
parent
4b1a293d57
commit
24ffcb956b
257 changed files with 29510 additions and 0 deletions
21
web/modules/contrib/pathauto/pathauto.js
Normal file
21
web/modules/contrib/pathauto/pathauto.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
(function ($) {
|
||||
'use strict';
|
||||
Drupal.behaviors.pathFieldsetSummaries = {
|
||||
attach: function (context) {
|
||||
$('fieldset.path-form', context).drupalSetSummary(function (context) {
|
||||
var path = $('.form-item-path-alias input', context).val();
|
||||
var automatic = $('.form-item-path-pathauto input', context).attr('checked');
|
||||
|
||||
if (automatic) {
|
||||
return Drupal.t('Automatic alias');
|
||||
}
|
||||
else if (path) {
|
||||
return Drupal.t('Alias: @alias', {'@alias': path});
|
||||
}
|
||||
else {
|
||||
return Drupal.t('No alias');
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
})(jQuery);
|
Reference in a new issue