Merge branch 'ent-7028-giss-implementar-dropdown-buscador-para-custom-fields' into 'develop'

select2 on select items

See merge request artica/pandorafms!3836
This commit is contained in:
Daniel Rodriguez 2021-04-07 10:52:07 +00:00
commit f0870e6e08
2 changed files with 31 additions and 0 deletions

View File

@ -872,6 +872,33 @@ function html_print_select(
";
}
if ($multiple === false) {
if (is_ajax()) {
$output .= '<script src="';
$output .= ui_get_full_url(
'include/javascript/select2.min.js',
false,
false,
false
);
$output .= '" type="text/javascript"></script>';
$output .= '<link rel="stylesheet" href="';
$output .= ui_get_full_url(
'include/styles/select2.min.css',
false,
false,
false
);
$output .= '"/>';
} else {
ui_require_css_file('select2.min');
ui_require_javascript_file('select2.min');
}
$output .= '<script>$("#'.$id.'").select2();</script>';
}
if ($return) {
return $output;
}

View File

@ -6272,6 +6272,10 @@ li .select2 {
max-width: 400px !important;
}
.select2-container {
min-width: 110px !important;
}
div.graph td.legendLabel {
text-align: justify;
}