Mercurial > hg > cmmr2012-drupal-site
annotate 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 |
rev | line source |
---|---|
Chris@0 | 1 /** |
Chris@0 | 2 * DO NOT EDIT THIS FILE. |
Chris@0 | 3 * See the following change record for more information, |
Chris@0 | 4 * https://www.drupal.org/node/2815083 |
Chris@0 | 5 * @preserve |
Chris@0 | 6 **/ |
Chris@0 | 7 |
Chris@0 | 8 (function ($, Drupal) { |
Chris@0 | 9 Drupal.behaviors.pathDetailsSummaries = { |
Chris@0 | 10 attach: function attach(context) { |
Chris@0 | 11 $(context).find('.path-form').drupalSetSummary(function (context) { |
Chris@0 | 12 var path = $('.js-form-item-path-0-alias input').val(); |
Chris@0 | 13 |
Chris@0 | 14 return path ? Drupal.t('Alias: @alias', { '@alias': path }) : Drupal.t('No alias'); |
Chris@0 | 15 }); |
Chris@0 | 16 } |
Chris@0 | 17 }; |
Chris@0 | 18 })(jQuery, Drupal); |