Commit 5419c8da authored by alexpott's avatar alexpott

Issue #2473941 by mortendk, rteijeiro, rachel_norfolk, Cottser, LewisNyman:...

Issue #2473941 by mortendk, rteijeiro, rachel_norfolk, Cottser, LewisNyman: Prefix field-parent classes with js-
parent b183aa14
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
var region = rowHandler.getRegion(); var region = rowHandler.getRegion();
if (region !== rowHandler.region) { if (region !== rowHandler.region) {
// Remove parenting. // Remove parenting.
$row.find('select.field-parent').val(''); $row.find('select.js-field-parent').val('');
// Let the row handler deal with the region change. // Let the row handler deal with the region change.
$.extend(refreshRows, rowHandler.regionChange(region)); $.extend(refreshRows, rowHandler.regionChange(region));
// Update the row region. // Update the row region.
......
...@@ -307,7 +307,7 @@ protected function buildFieldRow(FieldDefinitionInterface $field_definition, arr ...@@ -307,7 +307,7 @@ protected function buildFieldRow(FieldDefinitionInterface $field_definition, arr
'#title_display' => 'invisible', '#title_display' => 'invisible',
'#options' => array_combine($regions, $regions), '#options' => array_combine($regions, $regions),
'#empty_value' => '', '#empty_value' => '',
'#attributes' => array('class' => array('field-parent')), '#attributes' => array('class' => array('js-field-parent', 'field-parent')),
'#parents' => array('fields', $field_name, 'parent'), '#parents' => array('fields', $field_name, 'parent'),
), ),
'hidden_name' => array( 'hidden_name' => array(
...@@ -486,7 +486,7 @@ protected function buildExtraFieldRow($field_id, $extra_field) { ...@@ -486,7 +486,7 @@ protected function buildExtraFieldRow($field_id, $extra_field) {
'#title_display' => 'invisible', '#title_display' => 'invisible',
'#options' => array_combine($regions, $regions), '#options' => array_combine($regions, $regions),
'#empty_value' => '', '#empty_value' => '',
'#attributes' => array('class' => array('field-parent')), '#attributes' => array('class' => array('js-field-parent', 'field-parent')),
'#parents' => array('fields', $field_id, 'parent'), '#parents' => array('fields', $field_id, 'parent'),
), ),
'hidden_name' => array( 'hidden_name' => array(
......
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