mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
fixed error with wrong event list dialog in dashboard
This commit is contained in:
parent
e3619915cc
commit
05de5f643f
@ -1169,6 +1169,10 @@ function dashboardLoadVC(settings) {
|
|||||||
// eslint-disable-next-line no-unused-vars
|
// eslint-disable-next-line no-unused-vars
|
||||||
function dashboardShowEventDialog(settings) {
|
function dashboardShowEventDialog(settings) {
|
||||||
settings = JSON.parse(atob(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({
|
$.ajax({
|
||||||
method: "post",
|
method: "post",
|
||||||
url: settings.ajaxUrl,
|
url: settings.ajaxUrl,
|
||||||
|
@ -761,11 +761,6 @@ class EventsListWidget extends Widget
|
|||||||
$output .= "<div id='event_response_window'></div>";
|
$output .= "<div id='event_response_window'></div>";
|
||||||
$output .= "<div id='event_response_command_window' title='";
|
$output .= "<div id='event_response_command_window' title='";
|
||||||
$output .= \__('Parameters')."'></div>";
|
$output .= \__('Parameters')."'></div>";
|
||||||
$output .= \ui_require_javascript_file(
|
|
||||||
'pandora_events',
|
|
||||||
'include/javascript/',
|
|
||||||
true
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
$output .= '<div class="container-center">';
|
$output .= '<div class="container-center">';
|
||||||
$output .= \ui_print_info_message(
|
$output .= \ui_print_info_message(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user