X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcomment%2Fcomment-entity-form.es6.js;fp=web%2Fcore%2Fmodules%2Fcomment%2Fcomment-entity-form.es6.js;h=4f25c9b7610bbc0cd08b9eb96a63c225841212bf;hp=00a3404ab39ccb3a52d71bf49ed9529d74ba7323;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c 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);