From 83f9ab7efb18b794fa089d16daecbcca77c4ad29 Mon Sep 17 00:00:00 2001 From: Jen Lampton Date: Tue, 22 Nov 2016 10:57:49 -0800 Subject: [PATCH] Better states on admin form. --- metatag.admin.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/metatag.admin.inc b/metatag.admin.inc index 36c2ac7..219e1f1 100644 --- a/metatag.admin.inc +++ b/metatag.admin.inc @@ -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), ),