Improve button capabilities

This commit is contained in:
thomascube
2009-07-24 10:36:52 +00:00
parent 7e7edff7ee
commit 356a67fa54
2 changed files with 37 additions and 26 deletions

View File

@@ -876,7 +876,7 @@ class rcube_template extends rcube_html_page
$link_attrib = array('href', 'onclick', 'onmouseover', 'onmouseout', 'onmousedown', 'onmouseup', 'target');
}
else if ($attrib['type']=='link') {
$btn_content = $attrib['label'] ? $attrib['label'] : $attrib['command'];
$btn_content = isset($attrib['content']) ? $attrib['content'] : ($attrib['label'] ? $attrib['label'] : $attrib['command']);
$link_attrib = array('href', 'onclick', 'title', 'id', 'class', 'style', 'tabindex', 'target');
}
else if ($attrib['type']=='input') {