Security update to Drupal 8.4.6
[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.find('fieldset.comment-entity-settings-form').drupalSetSummary(context => Drupal.checkPlain($(context).find('.js-form-item-comment input:checked').next('label').text()));
15     },
16   };
17 }(jQuery, Drupal));