comparison core/modules/comment/comment-entity-form.es6.js @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children 129ea1e6d783
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 /**
2 * @file
3 * Attaches comment behaviors to the entity form.
4 */
5
6 (function ($, Drupal) {
7 /**
8 *
9 * @type {Drupal~behavior}
10 */
11 Drupal.behaviors.commentFieldsetSummaries = {
12 attach(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()));
15 },
16 };
17 }(jQuery, Drupal));