2 * DO NOT EDIT THIS FILE.
3 * See the following change record for more information,
4 * https://www.drupal.org/node/2815083
8 (function ($, Drupal) {
9 Drupal.behaviors.contentTypes = {
10 attach: function attach(context) {
11 var $context = $(context);
13 $context.find('#edit-submission').drupalSetSummary(function (context) {
15 vals.push(Drupal.checkPlain($(context).find('#edit-title-label').val()) || Drupal.t('Requires a title'));
16 return vals.join(', ');
18 $context.find('#edit-workflow').drupalSetSummary(function (context) {
20 $(context).find('input[name^="options"]:checked').next('label').each(function () {
21 vals.push(Drupal.checkPlain($(this).text()));
23 if (!$(context).find('#edit-options-status').is(':checked')) {
24 vals.unshift(Drupal.t('Not published'));
26 return vals.join(', ');
28 $('#edit-language', context).drupalSetSummary(function (context) {
31 vals.push($('.js-form-item-language-configuration-langcode select option:selected', context).text());
33 $('input:checked', context).next('label').each(function () {
34 vals.push(Drupal.checkPlain($(this).text()));
37 return vals.join(', ');
39 $context.find('#edit-display').drupalSetSummary(function (context) {
41 var $editContext = $(context);
42 $editContext.find('input:checked').next('label').each(function () {
43 vals.push(Drupal.checkPlain($(this).text()));
45 if (!$editContext.find('#edit-display-submitted').is(':checked')) {
46 vals.unshift(Drupal.t("Don't display post information"));
48 return vals.join(', ');