Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / node / content_types.js
1 /**
2 * DO NOT EDIT THIS FILE.
3 * See the following change record for more information,
4 * https://www.drupal.org/node/2815083
5 * @preserve
6 **/
7
8 (function ($, Drupal) {
9   Drupal.behaviors.contentTypes = {
10     attach: function attach(context) {
11       var $context = $(context);
12
13       $context.find('#edit-submission').drupalSetSummary(function (context) {
14         var vals = [];
15         vals.push(Drupal.checkPlain($(context).find('#edit-title-label').val()) || Drupal.t('Requires a title'));
16         return vals.join(', ');
17       });
18       $context.find('#edit-workflow').drupalSetSummary(function (context) {
19         var vals = [];
20         $(context).find('input[name^="options"]:checked').next('label').each(function () {
21           vals.push(Drupal.checkPlain($(this).text()));
22         });
23         if (!$(context).find('#edit-options-status').is(':checked')) {
24           vals.unshift(Drupal.t('Not published'));
25         }
26         return vals.join(', ');
27       });
28       $('#edit-language', context).drupalSetSummary(function (context) {
29         var vals = [];
30
31         vals.push($('.js-form-item-language-configuration-langcode select option:selected', context).text());
32
33         $('input:checked', context).next('label').each(function () {
34           vals.push(Drupal.checkPlain($(this).text()));
35         });
36
37         return vals.join(', ');
38       });
39       $context.find('#edit-display').drupalSetSummary(function (context) {
40         var vals = [];
41         var $editContext = $(context);
42         $editContext.find('input:checked').next('label').each(function () {
43           vals.push(Drupal.checkPlain($(this).text()));
44         });
45         if (!$editContext.find('#edit-display-submitted').is(':checked')) {
46           vals.unshift(Drupal.t("Don't display post information"));
47         }
48         return vals.join(', ');
49       });
50     }
51   };
52 })(jQuery, Drupal);