double refresh page events pandora_enterprise#9279

This commit is contained in:
Daniel Barbero Martin 2022-07-18 16:44:31 +02:00
parent 00d4f66dc3
commit 84fbf0e3dd
2 changed files with 20 additions and 16 deletions

View File

@ -925,7 +925,9 @@ echo sprintf('<div id="header_table" class="header_table_%s">', $menuTypeClass);
layout: '%M%nn%M:%S%nn%S',
labels: ['', '', '', '', '', '', ''],
onExpiry: function () {
dt_events.draw(false);
$("#table_events")
.DataTable()
.draw(false);
}
});
}

View File

@ -482,6 +482,7 @@ if (is_ajax() === true) {
$tmp->b64 = base64_encode(json_encode($tmp));
// Show comments events.
if (empty($tmp->comments) === false) {
$tmp->user_comment = $tmp->comments;
if ($tmp->comments !== 'undefined' && strlen($tmp->comments) > 80) {
$tmp->user_comment .= '&nbsp;&nbsp;';
@ -498,6 +499,7 @@ if (is_ajax() === true) {
);
$tmp->user_comment .= '</a>';
}
}
// Grouped events.
if (isset($tmp->max_id_evento) === true