2012-03-28 18:02:04 +00:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Attaches behaviors for the Path module.
|
|
|
|
*/
|
2009-04-27 20:19:38 +00:00
|
|
|
(function ($) {
|
2009-04-11 22:19:46 +00:00
|
|
|
|
2012-05-08 02:57:33 +00:00
|
|
|
"use strict";
|
|
|
|
|
2012-11-27 07:06:47 +00:00
|
|
|
Drupal.behaviors.pathDetailsSummaries = {
|
2009-04-27 20:19:38 +00:00
|
|
|
attach: function (context) {
|
2012-11-27 07:06:47 +00:00
|
|
|
$(context).find('.path-form').drupalSetSummary(function (context) {
|
2010-11-05 19:47:20 +00:00
|
|
|
var path = $('.form-item-path-alias input').val();
|
2009-04-11 22:19:46 +00:00
|
|
|
|
|
|
|
return path ?
|
|
|
|
Drupal.t('Alias: @alias', { '@alias': path }) :
|
|
|
|
Drupal.t('No alias');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
})(jQuery);
|