Updating Media dependent modules to versions compatible with core Media.
[yaffs-website] / web / modules / contrib / media_entity / js / media_bundle_form.js
diff --git a/web/modules/contrib/media_entity/js/media_bundle_form.js b/web/modules/contrib/media_entity/js/media_bundle_form.js
deleted file mode 100644 (file)
index 0f66229..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-/**
- * @file
- * Javascript for the media bundle form.
- */
-
-(function ($, Drupal) {
-  'use strict';
-
-  /**
-   * Behaviors for setting summaries on media bundle form.
-   *
-   * @type {Drupal~behavior}
-   *
-   * @prop {Drupal~behaviorAttach} attach
-   *   Attaches summary behaviors on media bundle edit forms.
-   */
-  Drupal.behaviors.contentTypes = {
-    attach: function (context) {
-      var $context = $(context);
-      // Provide the vertical tab summaries.
-      $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(', ');
-      });
-      $('#edit-language', context).drupalSetSummary(function (context) {
-        var vals = [];
-
-        vals.push($('.js-form-item-language-configuration-langcode select option:selected', context).text());
-
-        $('input:checked', context).next('label').each(function () {
-          vals.push(Drupal.checkPlain($(this).text()));
-        });
-
-        return vals.join(', ');
-      });
-    }
-  };
-
-})(jQuery, Drupal);