comparison core/modules/path/path.js @ 0:c75dbcec494b

Initial commit from drush-created site
author Chris Cannam
date Thu, 05 Jul 2018 14:24:15 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:c75dbcec494b
1 /**
2 * DO NOT EDIT THIS FILE.
3 * See the following change record for more information,
4 * https://www.drupal.org/node/2815083
5 * @preserve
6 **/
7
8 (function ($, Drupal) {
9 Drupal.behaviors.pathDetailsSummaries = {
10 attach: function attach(context) {
11 $(context).find('.path-form').drupalSetSummary(function (context) {
12 var path = $('.js-form-item-path-0-alias input').val();
13
14 return path ? Drupal.t('Alias: @alias', { '@alias': path }) : Drupal.t('No alias');
15 });
16 }
17 };
18 })(jQuery, Drupal);