diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index 917b0951a5..ed2d327aed 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -1575,12 +1575,13 @@ function html_print_select_multiple_modules_filtered(array $data):string 1 => __('Show all modules'), ]; - if (empty($data['commonModulesSwitch']) === false && $data['commonModulesSwitch'] === true) { + if (true) { $output .= html_print_input( [ - 'label' => __('Common/all modules'), + 'label' => __('Only common modules'), 'type' => 'switch', + 'value' => 'checked', 'id' => 'filtered-module-show-common-modules-'.$uniqId, 'return' => true, 'onchange' => 'fmModuleChange(\''.$uniqId.'\', '.(int) is_metaconsole().')', diff --git a/pandora_console/include/javascript/multiselect_filtered.js b/pandora_console/include/javascript/multiselect_filtered.js index d90ed96699..3348a6ac48 100644 --- a/pandora_console/include/javascript/multiselect_filtered.js +++ b/pandora_console/include/javascript/multiselect_filtered.js @@ -218,17 +218,9 @@ function fmModuleChange(uniqId, isMeta) { "#filtered-module-show-common-modules-" + uniqId ).attr("type"); - var showCommonModules = 0; - - if (commonSelectorType != "checkbox") { - showCommonModules = $( - "#filtered-module-show-common-modules-" + uniqId - ).val(); - } else { - showCommonModules = +$( - "#filtered-module-show-common-modules-" + uniqId - ).prop("checked"); - } + var showCommonModules = +( + $("#filtered-module-show-common-modules-" + uniqId).prop("checked") == false + ); jQuery.post( "ajax.php", diff --git a/pandora_console/include/javascript/pandora_dashboards.js b/pandora_console/include/javascript/pandora_dashboards.js index 467c27e05c..aacf542cbb 100644 --- a/pandora_console/include/javascript/pandora_dashboards.js +++ b/pandora_console/include/javascript/pandora_dashboards.js @@ -392,7 +392,7 @@ function initialiceLayout(data) { widgetId == 14 || widgetId == 2 || widgetId == 23 || widgetId == 16 ? 750 : 450, - maxHeight: 610, + maxHeight: 650, minHeight: widgetId == 16 ? 450 : 400 }, onsubmit: {