summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries2013-06-05 17:43:43 (GMT)
committerDries2013-06-05 17:43:43 (GMT)
commitbdf7b002b222b45eba5baae9122d1a4f4f417964 (patch)
treec2f8ab8b0845459642ef474ccb1573f2f1f85af5
parente2c4d34c31ddd407519af5405ac662b63d39f062 (diff)
Issue #1920888 by alexh58, YesCT, pmelab: Fixed Follow-up: Add some JS to make the dependent groups always checked (and readonly) when the master group is checked translatable.
-rw-r--r--core/modules/translation_entity/translation_entity.admin.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/modules/translation_entity/translation_entity.admin.inc b/core/modules/translation_entity/translation_entity.admin.inc
index 9f44bdf..dd7874c 100644
--- a/core/modules/translation_entity/translation_entity.admin.inc
+++ b/core/modules/translation_entity/translation_entity.admin.inc
@@ -41,8 +41,10 @@ function translation_entity_field_sync_widget(Field $field, FieldInstance $insta
'#options' => $options,
'#default_value' => !empty($instance['settings']['translation_sync']) ? $instance['settings']['translation_sync'] : $default,
'#attached' => array(
+ 'library' => array(
+ array('translation_entity', 'drupal.translation_entity.admin'),
+ ),
'js' => array(
- array('data' => drupal_get_path('module', 'translation_entity') . '/translation_entity.admin.js', 'type' => 'file'),
array('data' => array('translationEntityDependentOptions' => $settings), 'type' => 'setting'),
),
),