diff --git a/core/modules/node/content_types.js b/core/modules/node/content_types.js index 004c872..91ab7cb 100644 --- a/core/modules/node/content_types.js +++ b/core/modules/node/content_types.js @@ -26,7 +26,7 @@ }); $context.find('#edit-workflow').drupalSetSummary(function (context) { var vals = []; - $(context).find('.js-option:checked').next('.js-option-label').each(function () { + $(context).find('[data-drupal-selector^="edit-options-"]:checked').next('[data-drupal-selector="option-label"]').each(function () { vals.push(Drupal.checkPlain($(this).text())); }); if (!$(context).find('#edit-options-status').is(':checked')) { diff --git a/core/modules/node/src/NodeTypeForm.php b/core/modules/node/src/NodeTypeForm.php index ba74fd1..83b4791 100644 --- a/core/modules/node/src/NodeTypeForm.php +++ b/core/modules/node/src/NodeTypeForm.php @@ -152,15 +152,12 @@ public function form(array $form, FormStateInterface $form_state) { 'sticky' => t('Sticky at top of lists'), 'revision' => t('Create new revision'), ], - '#attributes' => [ - 'class' => ['js-option'], - ], '#description' => t('Users with the Administer content permission will be able to override these options.'), ]; $js_options = ['status', 'promote', 'sticky', 'revision']; foreach ($js_options as $option) { $form['workflow']['options'][$option]['#label_attributes'] = [ - 'class' => ['js-option-label'], + 'data-drupal-selector' => ['option-label'], ]; } if ($this->moduleHandler->moduleExists('language')) {