CommandForm: input[type=submit] instead of button

No need for a "button" here. As they have been broken in ZF for
a long while we should better stay with input[type=submit]

fixes #5978
This commit is contained in:
Thomas Gelf 2014-06-23 14:10:15 +02:00
parent 6f19bb13b8
commit d199a8b036
2 changed files with 7 additions and 4 deletions

View File

@ -119,7 +119,7 @@ class Zend_View_Helper_CommandForm extends Zend_View_Helper_Abstract
{
$form = $this->simpleForm($commandName, $arguments);
$button = new Zend_Form_Element_Button(
$button = new Zend_Form_Element_Submit(
array(
'name' => 'btn_submit',
'class' => $cls,

View File

@ -99,17 +99,20 @@ form.inline {
display: inline;
}
button.link-like {
button.link-like, input.link-like {
color: @colorLinkDefault;
background: none;
font-weight: normal;
border: none;
background: none;
padding: 0;
font-size: 1em;
cursor: pointer;
}
button.link-like:hover {
button.link-like:hover, input.link-like:hover, input.link-like:focus {
text-decoration: underline;
background: none;
color: @colorLinkDefault;
}
form ul.errors {