Drupal investigation

comment-entity-form.js 522B

123456789101112131415161718192021222324
  1. /**
  2. * @file
  3. * Attaches comment behaviors to the entity form.
  4. */
  5. (function ($, Drupal) {
  6. 'use strict';
  7. /**
  8. *
  9. * @type {Drupal~behavior}
  10. */
  11. Drupal.behaviors.commentFieldsetSummaries = {
  12. attach: function (context) {
  13. var $context = $(context);
  14. $context.find('fieldset.comment-entity-settings-form').drupalSetSummary(function (context) {
  15. return Drupal.checkPlain($(context).find('.js-form-item-comment input:checked').next('label').text());
  16. });
  17. }
  18. };
  19. })(jQuery, Drupal);