diff --git a/pandora_console/godmode/users/configure_user.php b/pandora_console/godmode/users/configure_user.php index 2f01df4a55..a85844bd7a 100644 --- a/pandora_console/godmode/users/configure_user.php +++ b/pandora_console/godmode/users/configure_user.php @@ -1777,7 +1777,6 @@ if (is_metaconsole() === false) { }); $("#button-uptbutton").click (function () { - console.log('aaaaaaaaaaaaa'); if($("#autorefresh_list option").length > 0) { $('#autorefresh_list option').prop('selected', true); } diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index 189bef609c..7691ec2fde 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -768,7 +768,8 @@ function html_print_select( $select2_enable=true, $select2_multiple_enable=false, $select2_multiple_enable_all=false, - $form='' + $form='', + $order=false, ) { $output = "\n"; @@ -805,6 +806,10 @@ function html_print_select( } } + if ($multiple === true && $order === true) { + $class .= ' order-arrows'; + } + if (!empty($class)) { $attributes .= ' class="'.$class.'"'; } @@ -1124,6 +1129,49 @@ function html_print_select( $output .= ''; } + if ($multiple === true && $order === true) { + $output .= ''; + } + if ($return) { return $output; } @@ -5510,7 +5558,9 @@ function html_print_input($data, $wrapper='div', $input_only=false) ((isset($data['truncate_size']) === true) ? $data['truncate_size'] : false), ((isset($data['select2_enable']) === true) ? $data['select2_enable'] : true), ((isset($data['select2_multiple_enable']) === true) ? $data['select2_multiple_enable'] : false), - ((isset($data['select2_multiple_enable_all']) === true) ? $data['select2_multiple_enable_all'] : false) + ((isset($data['select2_multiple_enable_all']) === true) ? $data['select2_multiple_enable_all'] : false), + ((isset($data['form']) === true) ? $data['form'] : ''), + ((isset($data['order']) === true) ? $data['order'] : false) ); break; @@ -6024,6 +6074,94 @@ function html_print_input($data, $wrapper='div', $input_only=false) // ); break; + case 'select_add_elements': + if (empty($data['selected']) === false) { + foreach ($data['selected'] as $key => $value) { + unset($data['fields'][$key]); + } + } + + $output .= '