projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Security update for Core, with self-updated composer
[yaffs-website]
/
web
/
core
/
modules
/
node
/
content_types.js
diff --git
a/web/core/modules/node/content_types.js
b/web/core/modules/node/content_types.js
index eed93f01c92754e98dc17bca0ff270403da7c3ce..9d2f24e66ce68400c84d8cba5a236f268df0f275 100644
(file)
--- a/
web/core/modules/node/content_types.js
+++ b/
web/core/modules/node/content_types.js
@@
-1,24
+1,15
@@
/**
/**
- * @file
- * Javascript for the node content editing form.
- */
+* DO NOT EDIT THIS FILE.
+* See the following change record for more information,
+* https://www.drupal.org/node/2815083
+* @preserve
+**/
(function ($, Drupal) {
(function ($, Drupal) {
-
- 'use strict';
-
- /**
- * Behaviors for setting summaries on content type form.
- *
- * @type {Drupal~behavior}
- *
- * @prop {Drupal~behaviorAttach} attach
- * Attaches summary behaviors on content type edit forms.
- */
Drupal.behaviors.contentTypes = {
Drupal.behaviors.contentTypes = {
- attach: function (context) {
+ attach: function
attach
(context) {
var $context = $(context);
var $context = $(context);
- // Provide the vertical tab summaries.
+
$context.find('#edit-submission').drupalSetSummary(function (context) {
var vals = [];
vals.push(Drupal.checkPlain($(context).find('#edit-title-label').val()) || Drupal.t('Requires a title'));
$context.find('#edit-submission').drupalSetSummary(function (context) {
var vals = [];
vals.push(Drupal.checkPlain($(context).find('#edit-title-label').val()) || Drupal.t('Requires a title'));
@@
-26,7
+17,7
@@
});
$context.find('#edit-workflow').drupalSetSummary(function (context) {
var vals = [];
});
$context.find('#edit-workflow').drupalSetSummary(function (context) {
var vals = [];
- $(context).find('input[name^="options"]:checked').
parent(
).each(function () {
+ $(context).find('input[name^="options"]:checked').
next('label'
).each(function () {
vals.push(Drupal.checkPlain($(this).text()));
});
if (!$(context).find('#edit-options-status').is(':checked')) {
vals.push(Drupal.checkPlain($(this).text()));
});
if (!$(context).find('#edit-options-status').is(':checked')) {
@@
-58,5
+49,4
@@
});
}
};
});
}
};
-
-})(jQuery, Drupal);
+})(jQuery, Drupal);
\ No newline at end of file