X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcomment%2Fcomment-entity-form.es6.js;h=4f25c9b7610bbc0cd08b9eb96a63c225841212bf;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=00a3404ab39ccb3a52d71bf49ed9529d74ba7323;hpb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;p=yaffs-website diff --git a/web/core/modules/comment/comment-entity-form.es6.js b/web/core/modules/comment/comment-entity-form.es6.js index 00a3404ab..4f25c9b76 100644 --- a/web/core/modules/comment/comment-entity-form.es6.js +++ b/web/core/modules/comment/comment-entity-form.es6.js @@ -3,7 +3,7 @@ * Attaches comment behaviors to the entity form. */ -(function ($, Drupal) { +(function($, Drupal) { /** * * @type {Drupal~behavior} @@ -11,7 +11,16 @@ 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())); + $context + .find('fieldset.comment-entity-settings-form') + .drupalSetSummary(context => + Drupal.checkPlain( + $(context) + .find('.js-form-item-comment input:checked') + .next('label') + .text(), + ), + ); }, }; -}(jQuery, Drupal)); +})(jQuery, Drupal);