From c0fb7f0f9174957a675e16a6a7505c8cd5d73983 Mon Sep 17 00:00:00 2001 From: Jorge Rincon Date: Thu, 11 May 2023 10:42:30 +0200 Subject: [PATCH] #11170 show module delete confirmation --- pandora_console/godmode/agentes/module_manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/godmode/agentes/module_manager.php b/pandora_console/godmode/agentes/module_manager.php index 0be7b555c7..4b4531b23c 100644 --- a/pandora_console/godmode/agentes/module_manager.php +++ b/pandora_console/godmode/agentes/module_manager.php @@ -1005,7 +1005,7 @@ if ($modules !== false) { $data[8] .= html_print_menu_button( [ 'href' => 'index.php?sec=gagente&tab=module&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&delete_module='.$module['id_agente_modulo'], - 'onClick' => "if (!confirm(\' '.__('Are you sure?').'\')) return false;", + 'onClick' => 'javascript: if (!confirm(\''.__('Are you sure?').'\')) return false;', 'image' => 'images/delete.svg', 'title' => __('Delete'), ],