diff --git a/core/modules/content_translation/content_translation.admin.js b/core/modules/content_translation/content_translation.admin.js index 0071b6ec996..2ca74966914 100644 --- a/core/modules/content_translation/content_translation.admin.js +++ b/core/modules/content_translation/content_translation.admin.js @@ -11,6 +11,9 @@ * Forces applicable options to be checked as translatable. * * @type {Drupal~behavior} + * + * @prop {Drupal~behaviorAttach} attach + * Attaches content translation dependent options to the UI. */ Drupal.behaviors.contentTranslationDependentOptions = { attach: function (context) { @@ -75,11 +78,14 @@ * Makes field translatability inherit bundle translatability. * * @type {Drupal~behavior} + * + * @prop {Drupal~behaviorAttach} attach + * Attaches content translation behavior. */ Drupal.behaviors.contentTranslation = { attach: function (context) { - // Initially hide all field rows for non translatable bundles and all column - // rows for non translatable fields. + // Initially hide all field rows for non translatable bundles and all + // column rows for non translatable fields. $(context).find('table .bundle-settings .translatable :input').once('translation-entity-admin-hide').each(function () { var $input = $(this); var $bundleSettings = $input.closest('.bundle-settings');