From 5195c6acaf5d2308df4bceb35869c70379ad9e68 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Thu, 11 May 2023 15:39:58 +0200 Subject: [PATCH] #11176 fixed dialog debug module --- .../godmode/agentes/module_manager_editor_web.php | 2 +- .../include/class/WebServerModuleDebug.class.php | 2 +- pandora_console/include/functions_ui.php | 6 ++---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/pandora_console/godmode/agentes/module_manager_editor_web.php b/pandora_console/godmode/agentes/module_manager_editor_web.php index b37bd3834a..4e97ffaa57 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_web.php +++ b/pandora_console/godmode/agentes/module_manager_editor_web.php @@ -193,7 +193,7 @@ $actionButtons .= html_print_button( __('Debug'), 'btn_debugModule', $disableDebug, - 'loadDebugWindow()', + '', [ 'icon' => 'cog', 'mode' => 'mini secondary ', diff --git a/pandora_console/include/class/WebServerModuleDebug.class.php b/pandora_console/include/class/WebServerModuleDebug.class.php index 26bbb8b2f1..6d4b691522 100644 --- a/pandora_console/include/class/WebServerModuleDebug.class.php +++ b/pandora_console/include/class/WebServerModuleDebug.class.php @@ -162,7 +162,7 @@ class WebServerModuleDebug extends Wizard results.setReadOnly(true); results.setShowPrintMargin(false); - $("#submit-execute_query").click(function() { + $("#button-execute_query").click(function() { // Show the spinner. showSpinner(true); // Empty the results container. diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 4dcf94edf1..73e06b19d5 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -7232,10 +7232,8 @@ function ui_query_result_editor($name='default') ] ); - $buttons = html_print_submit_button(__('Execute query'), 'execute_query', false, ['icon' => 'update'], true); - html_print_action_buttons( - $buttons - ); + html_print_submit_button(__('Execute query'), 'execute_query', false, ['icon' => 'update']); + }