Form: Only add the ViewHelper decorator for hidden form fields

refs #5543
This commit is contained in:
Johannes Meyer 2015-10-01 18:30:51 +02:00
parent 1c38fdd9c8
commit 209c084f51
2 changed files with 4 additions and 4 deletions

View File

@ -916,12 +916,16 @@ class Form extends Zend_Form
|| ($type === 'button' && isset($options['type']) && $options['type'] === 'submit'))
) {
array_splice($options['decorators'], 1, 0, array(array('Spinner', array('separator' => ''))));
} elseif ($type === 'hidden') {
$options['decorators'] = array('ViewHelper');
}
}
} else {
$options = array('decorators' => static::$defaultElementDecorators);
if ($type === 'submit') {
array_splice($options['decorators'], 1, 0, array(array('Spinner', array('separator' => ''))));
} elseif ($type === 'hidden') {
$options['decorators'] = array('ViewHelper');
}
}

View File

@ -12,10 +12,6 @@ input {
}
}
.control-group ~ input[type="hidden"] {
display: none;
}
input.search {
padding-left: 20px;
background: @gray-lightest url('../img/icons/search.png') no-repeat 2px;