comparison 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
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
1 /** 1 /**
2 * @file 2 * @file
3 * Attaches comment behaviors to the entity form. 3 * Attaches comment behaviors to the entity form.
4 */ 4 */
5 5
6 (function ($, Drupal) { 6 (function($, Drupal) {
7 /** 7 /**
8 * 8 *
9 * @type {Drupal~behavior} 9 * @type {Drupal~behavior}
10 */ 10 */
11 Drupal.behaviors.commentFieldsetSummaries = { 11 Drupal.behaviors.commentFieldsetSummaries = {
12 attach(context) { 12 attach(context) {
13 const $context = $(context); 13 const $context = $(context);
14 $context.find('fieldset.comment-entity-settings-form').drupalSetSummary(context => Drupal.checkPlain($(context).find('.js-form-item-comment input:checked').next('label').text())); 14 $context
15 .find('fieldset.comment-entity-settings-form')
16 .drupalSetSummary(context =>
17 Drupal.checkPlain(
18 $(context)
19 .find('.js-form-item-comment input:checked')
20 .next('label')
21 .text(),
22 ),
23 );
15 }, 24 },
16 }; 25 };
17 }(jQuery, Drupal)); 26 })(jQuery, Drupal);