summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-24 03:11:34 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-24 03:11:34 +0000
commitbf9c6341231cf2bc17895d54e41bc824eb742b7a (patch)
tree52ee004d1ad1cddf529552462f3e0ab7bf098add /includes
parent03a5563b899bf47d29914c812c5153fd725d6d46 (diff)
downloadbrdo-bf9c6341231cf2bc17895d54e41bc824eb742b7a.tar.gz
brdo-bf9c6341231cf2bc17895d54e41bc824eb742b7a.tar.bz2
#550572 by sun and c960657: Fixed CSS+JS regressions related to form-item-[name].
Diffstat (limited to 'includes')
-rw-r--r--includes/form.inc4
1 files changed, 2 insertions, 2 deletions
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 = '<div class="' . implode(' ', $class) . '">' . "\n";