import v1.1.0_beta1 | 2009-08-21
This commit is contained in:
@ -17,7 +17,7 @@
|
||||
* @subpackage View
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: SubmitButton.php 10621 2008-08-04 00:05:33Z matthew $
|
||||
* @version $Id: SubmitButton.php 12691 2008-11-18 20:16:06Z matthew $
|
||||
*/
|
||||
|
||||
/** Zend_Dojo_View_Helper_Button */
|
||||
@ -53,6 +53,15 @@ class Zend_Dojo_View_Helper_SubmitButton extends Zend_Dojo_View_Helper_Button
|
||||
if (!array_key_exists('label', $params)) {
|
||||
$params['label'] = $value;
|
||||
}
|
||||
if (empty($params['label']) && !empty($params['content'])) {
|
||||
$params['label'] = $params['content'];
|
||||
$value = $params['content'];
|
||||
}
|
||||
if (empty($params['label']) && !empty($attribs['content'])) {
|
||||
$params['label'] = $attribs['content'];
|
||||
$value = $attribs['content'];
|
||||
unset($attribs['content']);
|
||||
}
|
||||
return $this->_createFormElement($id, $value, $params, $attribs);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user