Added the Porter Stemmer module to improve searches. This doesn't deal with some...
[yaffs-website] / web / modules / contrib / pathauto / pathauto.js
1 (function ($) {
2   'use strict';
3   Drupal.behaviors.pathFieldsetSummaries = {
4     attach: function (context) {
5       $(context).find('.path-form').drupalSetSummary(function (context) {
6         var path = $('.js-form-item-path-0-alias input', context).val();
7         var automatic = $('.js-form-item-path-0-pathauto input', context).prop('checked');
8
9         if (automatic) {
10           return Drupal.t('Automatic alias');
11         }
12         else if (path) {
13           return Drupal.t('Alias: @alias', {'@alias': path});
14         }
15         else {
16           return Drupal.t('No alias');
17         }
18       });
19     }
20   };
21 })(jQuery);