Mercurial > hg > cmmr2012-drupal-site
view core/modules/comment/comment-entity-form.es6.js @ 0:c75dbcec494b
Initial commit from drush-created site
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2018 14:24:15 +0000 |
parents | |
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));