1
|
(function ($) {
|
2
|
|
3
|
Drupal.behaviors.pathFieldsetSummaries = {
|
4
|
attach: function (context) {
|
5
|
$('fieldset.path-form', context).drupalSetSummary(function (context) {
|
6
|
var path = $('.form-item-path-alias input').val();
|
7
|
var automatic = $('.form-item-path-pathauto input').attr('checked');
|
8
|
|
9
|
if (automatic) {
|
10
|
return Drupal.t('Automatic alias');
|
11
|
}
|
12
|
if (path) {
|
13
|
return Drupal.t('Alias: @alias', { '@alias': path });
|
14
|
}
|
15
|
else {
|
16
|
return Drupal.t('No alias');
|
17
|
}
|
18
|
});
|
19
|
}
|
20
|
};
|
21
|
|
22
|
})(jQuery);
|