Skip to content
Snippets Groups Projects
Commit b61f609b authored by gloas's avatar gloas
Browse files

ajout du onclik dans le decorateur link

parent fc2bbfae
No related merge requests found
......@@ -26,7 +26,8 @@ class ZendAfi_Form_Decorator_Link extends Zend_Form_Decorator_HtmlTag {
*/
public function render($content) {
$attribs = array_intersect_key($this->_element->getAttribs(), ['target' => '',
'title' => '']);
'title' => '',
'onclick' => '']);
return parent::render($this->_element->getView()->tagAnchor($this->_element->getValue(),
$this->_element->getLabel(),
$attribs));
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment