comment-entity-form.es6.js 461 B

1234567891011121314151617
  1. /**
  2. * @file
  3. * Attaches comment behaviors to the entity form.
  4. */
  5. (function ($, Drupal) {
  6. /**
  7. *
  8. * @type {Drupal~behavior}
  9. */
  10. Drupal.behaviors.commentFieldsetSummaries = {
  11. attach(context) {
  12. const $context = $(context);
  13. $context.find('fieldset.comment-entity-settings-form').drupalSetSummary(context => Drupal.checkPlain($(context).find('.js-form-item-comment input:checked').next('label').text()));
  14. },
  15. };
  16. }(jQuery, Drupal));