summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/comment/comment-entity-form.js
blob: e068ef51d265cdcd6e06d2889f5723f4977e764d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
 * @file
 * Attaches comment behaviors to the entity form.
 */

(function ($) {

"use strict";

Drupal.behaviors.commentFieldsetSummaries = {
  attach: function (context) {
    var $context = $(context);
    $context.find('fieldset.comment-entity-settings-form').drupalSetSummary(function (context) {
      return Drupal.checkPlain($(context).find('.form-item-comment input:checked').next('label').text());
    });
  }
};

})(jQuery);