Pull merge.
[yaffs-website] / web / core / modules / comment / comment-entity-form.es6.js
1 /**
2  * @file
3  * Attaches comment behaviors to the entity form.
4  */
5
6 (function($, Drupal) {
7   /**
8    *
9    * @type {Drupal~behavior}
10    */
11   Drupal.behaviors.commentFieldsetSummaries = {
12     attach(context) {
13       const $context = $(context);
14       $context
15         .find('fieldset.comment-entity-settings-form')
16         .drupalSetSummary(context =>
17           Drupal.checkPlain(
18             $(context)
19               .find('.js-form-item-comment input:checked')
20               .next('label')
21               .text(),
22           ),
23         );
24     },
25   };
26 })(jQuery, Drupal);