1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-24 08:22:07 +02:00

Corrected <select> size styling issue.

This commit is contained in:
Cameron
2014-10-22 13:27:33 -07:00
parent d248a5d2ff
commit cd41adedf5

View File

@@ -1528,6 +1528,13 @@ class e_form
function select_open($name, $options = array())
{
if(!is_array($options)) parse_str($options, $options);
if(vartrue($options['size']) && !is_numeric($options['size']))
{
$options['class'] .= " input-".$options['size'];
unset($options['size']); // don't include in html 'size='.
}
$options = $this->format_options('select', $name, $options);
return "<select name='{$name}'".$this->get_attributes($options, $name).">";