mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
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:
commit
f0870e6e08
@ -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) {
|
if ($return) {
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
@ -6272,6 +6272,10 @@ li .select2 {
|
|||||||
max-width: 400px !important;
|
max-width: 400px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.select2-container {
|
||||||
|
min-width: 110px !important;
|
||||||
|
}
|
||||||
|
|
||||||
div.graph td.legendLabel {
|
div.graph td.legendLabel {
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user