mirror of
https://github.com/e107inc/e107.git
synced 2025-07-25 17:01:43 +02:00
Corrected <select> size styling issue.
This commit is contained in:
@@ -1528,6 +1528,13 @@ class e_form
|
|||||||
|
|
||||||
function select_open($name, $options = array())
|
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);
|
$options = $this->format_options('select', $name, $options);
|
||||||
|
|
||||||
return "<select name='{$name}'".$this->get_attributes($options, $name).">";
|
return "<select name='{$name}'".$this->get_attributes($options, $name).">";
|
||||||
|
Reference in New Issue
Block a user