mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Solved issue with metaconsole
This commit is contained in:
parent
6ca2caa511
commit
191db192c9
@ -279,8 +279,10 @@ if (is_ajax()) {
|
|||||||
function ($carry, $item) {
|
function ($carry, $item) {
|
||||||
$tmp = (object) $item;
|
$tmp = (object) $item;
|
||||||
$tmp->hint = '';
|
$tmp->hint = '';
|
||||||
|
$tmp->meta = false;
|
||||||
if (strlen($tmp->evento) >= 255) {
|
if (strlen($tmp->evento) >= 255) {
|
||||||
$tmp->hint = io_safe_output(chunk_split(substr($tmp->evento, 0, 600), 80, '<br>').'(...)');
|
$tmp->hint = io_safe_output(chunk_split(substr($tmp->evento, 0, 600), 80, '<br>').'(...)');
|
||||||
|
$tmp->meta = is_metaconsole();
|
||||||
$tmp->evento = io_safe_output(substr($tmp->evento, 0, 253).'(...)');
|
$tmp->evento = io_safe_output(substr($tmp->evento, 0, 253).'(...)');
|
||||||
if (strpos($tmp->evento, ' ') === false) {
|
if (strpos($tmp->evento, ' ') === false) {
|
||||||
$tmp->evento = substr($tmp->evento, 0, 80).'(...)';
|
$tmp->evento = substr($tmp->evento, 0, 80).'(...)';
|
||||||
@ -1642,7 +1644,8 @@ function process_datatables_item(item) {
|
|||||||
}
|
}
|
||||||
evn += item.evento+'</a>';
|
evn += item.evento+'</a>';
|
||||||
if(item.hint !== ''){
|
if(item.hint !== ''){
|
||||||
evn += ' <img src="images/tip_help.png" data-title="'+item.hint+'" data-use_title_for_force_title="1" class="forced_title" alt="'+item.hint+'">';
|
let ruta = item.meta == true ? '../../images/tip_help.png' : 'images/tip_help.png';
|
||||||
|
evn += ' <img src="'+ruta+'" data-title="'+item.hint+'" data-use_title_for_force_title="1" class="forced_title" alt="'+item.hint+'">';
|
||||||
}
|
}
|
||||||
|
|
||||||
item.mini_severity = '<div class="event flex-row h100p nowrap">';
|
item.mini_severity = '<div class="event flex-row h100p nowrap">';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user