Commit bdf7b002 authored by Dries's avatar Dries

Issue #1920888 by alexh58, YesCT, pmelab: Fixed Follow-up: Add some JS to make...

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.
parent e2c4d34c
...@@ -41,8 +41,10 @@ function translation_entity_field_sync_widget(Field $field, FieldInstance $insta ...@@ -41,8 +41,10 @@ function translation_entity_field_sync_widget(Field $field, FieldInstance $insta
'#options' => $options, '#options' => $options,
'#default_value' => !empty($instance['settings']['translation_sync']) ? $instance['settings']['translation_sync'] : $default, '#default_value' => !empty($instance['settings']['translation_sync']) ? $instance['settings']['translation_sync'] : $default,
'#attached' => array( '#attached' => array(
'library' => array(
array('translation_entity', 'drupal.translation_entity.admin'),
),
'js' => array( 'js' => array(
array('data' => drupal_get_path('module', 'translation_entity') . '/translation_entity.admin.js', 'type' => 'file'),
array('data' => array('translationEntityDependentOptions' => $settings), 'type' => 'setting'), array('data' => array('translationEntityDependentOptions' => $settings), 'type' => 'setting'),
), ),
), ),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment