diff options
author | catch <catch@35733.no-reply.drupal.org> | 2022-09-09 07:26:42 +0100 |
---|---|---|
committer | catch <catch@35733.no-reply.drupal.org> | 2022-09-09 07:26:42 +0100 |
commit | 8aa8ce1ffbcca9c727f46e58c714e1d351f7ef88 (patch) | |
tree | 27be6908992c340ba0b4c0bd3f4339670aa71e90 /core/modules/comment/comment-entity-form.js | |
parent | 09f8f13d8a72b8e482cc689fcd10f023df41b899 (diff) | |
download | drupal-8aa8ce1ffbcca9c727f46e58c714e1d351f7ef88.tar.gz drupal-8aa8ce1ffbcca9c727f46e58c714e1d351f7ef88.zip |
Issue #3278415 by nod_, lauriii, catch, Wim Leers, longwave, xjm, claudiu.cristea: Remove usages of the JavaScript ES6 build step, the build step itself, and associated dev dependencies
Diffstat (limited to 'core/modules/comment/comment-entity-form.js')
-rw-r--r-- | core/modules/comment/comment-entity-form.js | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/core/modules/comment/comment-entity-form.js b/core/modules/comment/comment-entity-form.js index 7b7c8b0ed64..af54d92a9c9 100644 --- a/core/modules/comment/comment-entity-form.js +++ b/core/modules/comment/comment-entity-form.js @@ -1,16 +1,25 @@ /** -* DO NOT EDIT THIS FILE. -* See the following change record for more information, -* https://www.drupal.org/node/2815083 -* @preserve -**/ + * @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')[0].textContent)); - } - + $context + .find('fieldset.comment-entity-settings-form') + .drupalSetSummary((context) => + Drupal.checkPlain( + $(context) + .find('.js-form-item-comment input:checked') + .next('label')[0].textContent, + ), + ); + }, }; -})(jQuery, Drupal);
\ No newline at end of file +})(jQuery, Drupal); |