Skip to content

Commit

Permalink
Better states on admin form.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jen Lampton committed Nov 22, 2016
1 parent e2fad7c commit 83f9ab7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions metatag.admin.inc
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,12 @@ function metatag_admin_settings_form() {
'class' => array('metatag-bundle-checkbox'),
),
'#states' => array(
'unchecked' => array(
':input[name="metatag_enable_' . $entity_type . '"]' => array('checked' => FALSE),
),
'checked' => array(
':input[name="metatag_enable_' . $entity_type . '"]' => array('checked' => TRUE),
),
'visible' => array(
':input[name="metatag_enable_' . $entity_type . '"]' => array('checked' => TRUE),
),
Expand Down

0 comments on commit 83f9ab7

Please sign in to comment.