Mercurial > hg > cmmr2012-drupal-site
view core/modules/comment/comment-entity-form.es6.js @ 2:5311817fb629
Theme updates
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 13:19:18 +0000 |
parents | c75dbcec494b |
children | a9cd425dd02b |
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));