ctools_include('dependent');

  $form['test'] = array(
    '#type' => 'fieldset',
    '#title' => t('Test'),
 '#collapsible' => FALSE,
  );

 $form['test']['foo'] = array(
   '#type' => 'checkbox',
   '#title' => t('Foo'),
   '#default_value' => FALSE,
 );
 $form['test']['bar'] = array(
   '#type' => 'fieldset',
   '#process' => array('ctools_dependent_process'),
   '#dependency' => array('edit-foo' => array(1)),
   '#input' => TRUE,
   '#id' => 'bar',
   '#prefix' => '<div id="bar-wrapper">',
   '#suffix' => '</div>',
 );
 $form['sale']['ec80']['ec80_serial'] = array(
   '#value' => t('Bar'),
 );
 return $form;

this works as desired in all current browsers:

1. Click on the 'foo'-checkbox
2. the 'foo'-checkbox get checked and
3. the 'bar'-fieldset appears

but in IE7 and 8:

1. Click on the 'foo'-checkbox
2. the 'foo'-checkbox get checked and
3. the 'bar'-fieldset doesn't appear

when I now click on something else (ergo: 'foo' looses its focus), the 'bar'-fieldset appears

Comments

japerry’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Drupal 7 is no longer supported, closing.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.