From 8049aabf5be0da589cdbdc9c187e7f420e535dc6 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Tue, 16 Feb 2021 13:35:04 +0100 Subject: [PATCH] select2 on select items --- pandora_console/include/functions_html.php | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index d00628000c..b807c209cf 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -834,6 +834,33 @@ function html_print_select( "; } + if ($multiple === false) { + if (is_ajax()) { + $output .= ''; + + $output .= ''; + } else { + ui_require_css_file('select2.min'); + ui_require_javascript_file('select2.min'); + } + + $output .= ''; + } + if ($return) { return $output; }