Mercurial > hg > cmmr2012-drupal-site
annotate 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 |
rev | line source |
---|---|
Chris@0 | 1 /** |
Chris@0 | 2 * @file |
Chris@0 | 3 * Attaches comment behaviors to the entity form. |
Chris@0 | 4 */ |
Chris@0 | 5 |
Chris@0 | 6 (function ($, Drupal) { |
Chris@0 | 7 /** |
Chris@0 | 8 * |
Chris@0 | 9 * @type {Drupal~behavior} |
Chris@0 | 10 */ |
Chris@0 | 11 Drupal.behaviors.commentFieldsetSummaries = { |
Chris@0 | 12 attach(context) { |
Chris@0 | 13 const $context = $(context); |
Chris@0 | 14 $context.find('fieldset.comment-entity-settings-form').drupalSetSummary(context => Drupal.checkPlain($(context).find('.js-form-item-comment input:checked').next('label').text())); |
Chris@0 | 15 }, |
Chris@0 | 16 }; |
Chris@0 | 17 }(jQuery, Drupal)); |