Mercurial > hg > isophonics-drupal-site
view core/modules/comment/comment-entity-form.es6.js @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
/** * @file * Attaches comment behaviors to the entity form. */ (function($, Drupal) { /** * * @type {Drupal~behavior} */ Drupal.behaviors.commentFieldsetSummaries = { attach(context) { const $context = $(context); $context .find('fieldset.comment-entity-settings-form') .drupalSetSummary(context => Drupal.checkPlain( $(context) .find('.js-form-item-comment input:checked') .next('label') .text(), ), ); }, }; })(jQuery, Drupal);