From bf9c6341231cf2bc17895d54e41bc824eb742b7a Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 24 Aug 2009 03:11:34 +0000 Subject: #550572 by sun and c960657: Fixed CSS+JS regressions related to form-item-[name]. --- includes/form.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/form.inc b/includes/form.inc index f36da73ab..2256f4f05 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -2540,10 +2540,10 @@ function theme_form_element($element) { // Add element's #type and #name as class to aid with JS/CSS selectors. $class = array('form-item'); if (!empty($element['#type'])) { - $class[] = 'form-item-' . strtr($element['#type'], array('_' => '-')); + $class[] = 'form-type-' . strtr($element['#type'], '_', '-'); } if (!empty($element['#name'])) { - $class[] = strtr($element['#name'], array(' ' => '-', '_' => '-', '[' => '-', ']' => '')) . '-wrapper'; + $class[] = 'form-item-' . strtr($element['#name'], array(' ' => '-', '_' => '-', '[' => '-', ']' => '')); } $output = '
' . "\n"; -- cgit v1.2.3