diff --git a/core/modules/translation_entity/translation_entity.admin.js b/core/modules/translation_entity/translation_entity.admin.js index 9647282..d7c943c 100644 --- a/core/modules/translation_entity/translation_entity.admin.js +++ b/core/modules/translation_entity/translation_entity.admin.js @@ -10,9 +10,9 @@ Drupal.behaviors.translationEntityDependentOptions = { var $options = settings.translationEntityDependentOptions; var $collections = []; - // We're given a generic name to look for so we find all inputs - // containing that name and copy over the input values that - // require all columns to be translatable. + // We're given a generic name to look for so we find all inputs containing + // that name and copy over the input values that require all columns to be + // translatable. if ($options.dependent_selectors) { $.each($options.dependent_selectors, function($field, $dependent_columns) { $collections.push({ elements : $(context).find('input[name^="' + $field + '"]'), dependent_columns : $dependent_columns }); @@ -26,9 +26,8 @@ Drupal.behaviors.translationEntityDependentOptions = { $fields.change(function() { var $changed = $(this); - // A field that has many different translatable parts can - // also define one or more columns that require all columns - // to be translatable. + // A field that has many different translatable parts can also define one + // or more columns that require all columns to be translatable. $.each($dependent_columns, function($index, $column) { if($changed.is('input[value="' + $column + '"]:checked')) { $fields.prop('checked', true).not($changed).prop('disabled', true);