2017-05-19 22:12:53 +00:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Attaches comment behaviors to the entity form.
|
|
|
|
*/
|
|
|
|
|
|
|
|
(function ($, Drupal) {
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @type {Drupal~behavior}
|
|
|
|
*/
|
|
|
|
Drupal.behaviors.commentFieldsetSummaries = {
|
2017-07-06 06:21:40 +00:00
|
|
|
attach(context) {
|
|
|
|
const $context = $(context);
|
|
|
|
$context.find('fieldset.comment-entity-settings-form').drupalSetSummary(context => Drupal.checkPlain($(context).find('.js-form-item-comment input:checked').next('label').text()));
|
|
|
|
},
|
2017-05-19 22:12:53 +00:00
|
|
|
};
|
2017-07-06 06:21:40 +00:00
|
|
|
}(jQuery, Drupal));
|