From 05de5f643f6994281d25403fe8f1535e2bb58938 Mon Sep 17 00:00:00 2001 From: marcos Date: Fri, 27 Aug 2021 09:20:30 +0200 Subject: [PATCH] fixed error with wrong event list dialog in dashboard --- pandora_console/include/javascript/pandora_dashboards.js | 4 ++++ .../include/lib/Dashboard/Widgets/events_list.php | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/pandora_console/include/javascript/pandora_dashboards.js b/pandora_console/include/javascript/pandora_dashboards.js index ffd3cacf74..e1de0ba834 100644 --- a/pandora_console/include/javascript/pandora_dashboards.js +++ b/pandora_console/include/javascript/pandora_dashboards.js @@ -1169,6 +1169,10 @@ function dashboardLoadVC(settings) { // eslint-disable-next-line no-unused-vars function dashboardShowEventDialog(settings) { settings = JSON.parse(atob(settings)); + var dialog_exist = $("div[aria-describedby='event_details_window']"); + if (dialog_exist.length == 1) { + $("div[aria-describedby='event_details_window']").remove(); + } $.ajax({ method: "post", url: settings.ajaxUrl, diff --git a/pandora_console/include/lib/Dashboard/Widgets/events_list.php b/pandora_console/include/lib/Dashboard/Widgets/events_list.php index e457df69bf..45633b08c2 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/events_list.php +++ b/pandora_console/include/lib/Dashboard/Widgets/events_list.php @@ -761,11 +761,6 @@ class EventsListWidget extends Widget $output .= "
"; $output .= "
"; - $output .= \ui_require_javascript_file( - 'pandora_events', - 'include/javascript/', - true - ); } else { $output .= '
'; $output .= \ui_print_info_message(