From 841b1d66d33a7b979089481f09a45fe7bd34c4e8 Mon Sep 17 00:00:00 2001 From: Jorge Rincon Date: Thu, 27 Apr 2023 14:35:22 +0200 Subject: [PATCH] #10765 The action of deleting a map is changed to confirmDialog --- .../operation/agentes/pandora_networkmap.php | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/pandora_console/operation/agentes/pandora_networkmap.php b/pandora_console/operation/agentes/pandora_networkmap.php index c3f7786a2e..fe3e4b9ff1 100644 --- a/pandora_console/operation/agentes/pandora_networkmap.php +++ b/pandora_console/operation/agentes/pandora_networkmap.php @@ -823,7 +823,8 @@ switch ($tab) { $tableActionButtons[] = html_print_anchor( [ 'title' => __('Delete'), - 'href' => 'index.php?sec=network&sec2=operation/agentes/pandora_networkmap&delete=1&id_networkmap='.$network_map['id'], + 'href' => 'javascript:', + 'onClick' => 'deleteMap('.$network_map['id'].')', 'content' => html_print_image('images/delete.svg', true, ['class' => 'main_menu_icon invert_filter']), ], true @@ -864,3 +865,25 @@ switch ($tab) { break; } + +?> + + \ No newline at end of file