123456789101112131415161718192021222324252627282930313233343536 |
- /**
- * DO NOT EDIT THIS FILE.
- * See the following change record for more information,
- * https://www.drupal.org/node/2815083
- * @preserve
- **/
- (function ($, Drupal) {
- Drupal.behaviors.mediaTypeFormSummaries = {
- attach: function attach(context) {
- var $context = $(context);
- $context.find('#edit-workflow').drupalSetSummary(function (context) {
- var vals = [];
- $(context).find('input[name^="options"]:checked').parent().each(function () {
- vals.push(Drupal.checkPlain($(this).find('label').text()));
- });
- if (!$(context).find('#edit-options-status').is(':checked')) {
- vals.unshift(Drupal.t('Not published'));
- }
- return vals.join(', ');
- });
- $(context).find('#edit-language').drupalSetSummary(function (context) {
- var vals = [];
- vals.push($(context).find('.js-form-item-language-configuration-langcode select option:selected').text());
- $(context).find('input:checked').next('label').each(function () {
- vals.push(Drupal.checkPlain($(this).text()));
- });
- return vals.join(', ');
- });
- }
- };
- })(jQuery, Drupal);
|