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