thomascube
2011-11-30 5587b34cfa5d04fec8e009288cabd0ffdbf39413
Enable buttons having an inner <span> for better CSS styling capabilities

1 files modified
2 ■■■■■ changed files
program/include/rcube_template.php 2 ●●●●● patch | view | raw | blame | history
program/include/rcube_template.php
@@ -970,6 +970,8 @@
        else if ($attrib['type']=='link') {
            $btn_content = isset($attrib['content']) ? $attrib['content'] : ($attrib['label'] ? $attrib['label'] : $attrib['command']);
            $link_attrib = array('href', 'onclick', 'title', 'id', 'class', 'style', 'tabindex', 'target');
            if ($attrib['innerclass'])
                $btn_content = html::span($attrib['innerclass'], $btn_content);
        }
        else if ($attrib['type']=='input') {
            $attrib['type'] = 'button';