Move all files to 2017/
This commit is contained in:
parent
ac7370f67f
commit
2875863330
15717 changed files with 0 additions and 0 deletions
21
2017/web/modules/contrib/pathauto/pathauto.js
Normal file
21
2017/web/modules/contrib/pathauto/pathauto.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
(function ($) {
|
||||
'use strict';
|
||||
Drupal.behaviors.pathFieldsetSummaries = {
|
||||
attach: function (context) {
|
||||
$(context).find('.path-form').drupalSetSummary(function (context) {
|
||||
var path = $('.js-form-item-path-0-alias input', context).val();
|
||||
var automatic = $('.js-form-item-path-0-pathauto input', context).prop('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