Fix css multiseclect
This commit is contained in:
parent
a3d32fc7eb
commit
0235e24e0e
@ -8408,8 +8408,13 @@ class Form
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try also magic suggest
|
$useenhancedmultiselect = 0;
|
||||||
$out .= '<select id="'.$htmlname.'" class="multiselect'.($morecss ? ' '.$morecss : '').'" multiple name="'.$htmlname.'[]"'.($moreattrib ? ' '.$moreattrib : '').($width ? ' style="width: '.(preg_match('/%/', $width) ? $width : $width.'px').'"' : '').'>'."\n";
|
if (!empty($conf->use_javascript_ajax) && !empty($conf->global->MAIN_USE_JQUERY_MULTISELECT) || defined('REQUIRE_JQUERY_MULTISELECT')) {
|
||||||
|
$useenhancedmultiselect = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Output select component
|
||||||
|
$out .= '<select id="'.$htmlname.'" class="multiselect'.($useenhancedmultiselect ? ' multiselectononeline' : '').($morecss ? ' '.$morecss : '').'" multiple name="'.$htmlname.'[]"'.($moreattrib ? ' '.$moreattrib : '').($width ? ' style="width: '.(preg_match('/%/', $width) ? $width : $width.'px').'"' : '').'>'."\n";
|
||||||
if (is_array($array) && !empty($array)) {
|
if (is_array($array) && !empty($array)) {
|
||||||
if ($value_as_key) {
|
if ($value_as_key) {
|
||||||
$array = array_combine($array, $array);
|
$array = array_combine($array, $array);
|
||||||
|
|||||||
@ -6514,6 +6514,14 @@ ul.select2-results__options li {
|
|||||||
font-size: 0.95em;
|
font-size: 0.95em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
select.multiselectononeline {
|
||||||
|
padding: 0;
|
||||||
|
vertical-align: middle;
|
||||||
|
height: 28px !important;
|
||||||
|
opacity: 0;
|
||||||
|
/* width: 1px !important; */
|
||||||
|
}
|
||||||
|
|
||||||
@media only screen and (min-width: 767px)
|
@media only screen and (min-width: 767px)
|
||||||
{
|
{
|
||||||
/* CSS to have the dropdown boxes larger that the input search area */
|
/* CSS to have the dropdown boxes larger that the input search area */
|
||||||
|
|||||||
@ -6421,6 +6421,14 @@ ul.select2-results__options li {
|
|||||||
font-size: 0.95em;
|
font-size: 0.95em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
select.multiselectononeline {
|
||||||
|
padding: 0;
|
||||||
|
vertical-align: middle;
|
||||||
|
height: 28px !important;
|
||||||
|
opacity: 0;
|
||||||
|
/* width: 1px !important; */
|
||||||
|
}
|
||||||
|
|
||||||
@media only screen and (min-width: 767px)
|
@media only screen and (min-width: 767px)
|
||||||
{
|
{
|
||||||
/* CSS to have the dropdown boxes larger that the input search area */
|
/* CSS to have the dropdown boxes larger that the input search area */
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user