Mercurial > hg > isophonics-drupal-site
view core/modules/comment/comment-entity-form.es6.js @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
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));