mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
avoided issue latin1 btoa javascript event transfer
This commit is contained in:
parent
86600ca454
commit
674c68bd2b
@ -294,6 +294,9 @@ if (is_ajax()) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
$tmp->data = format_numeric($tmp->data, 1);
|
$tmp->data = format_numeric($tmp->data, 1);
|
||||||
|
|
||||||
|
$tmp->b64 = base64_encode(json_encode($tmp));
|
||||||
|
|
||||||
$carry[] = $tmp;
|
$carry[] = $tmp;
|
||||||
return $carry;
|
return $carry;
|
||||||
}
|
}
|
||||||
@ -1599,7 +1602,7 @@ function process_datatables_item(item) {
|
|||||||
|
|
||||||
// Add event severity to end of text.
|
// Add event severity to end of text.
|
||||||
evn = '<a href="javascript:" onclick="show_event_dialog(\'';
|
evn = '<a href="javascript:" onclick="show_event_dialog(\'';
|
||||||
evn += btoa(JSON.stringify(item))+'\','+$("#group_rep").val()+');">';
|
evn += item.b64+'\','+$("#group_rep").val()+');">';
|
||||||
// Grouped events.
|
// Grouped events.
|
||||||
if(item.event_rep && item.event_rep > 1) {
|
if(item.event_rep && item.event_rep > 1) {
|
||||||
evn += '('+item.event_rep+') ';
|
evn += '('+item.event_rep+') ';
|
||||||
@ -1705,7 +1708,7 @@ function process_datatables_item(item) {
|
|||||||
/* Options */
|
/* Options */
|
||||||
// Show more.
|
// Show more.
|
||||||
item.options = '<a href="javascript:" onclick="show_event_dialog(\'';
|
item.options = '<a href="javascript:" onclick="show_event_dialog(\'';
|
||||||
item.options += btoa(JSON.stringify(item))+'\','+$("#group_rep").val();
|
item.options += item.b64+'\','+$("#group_rep").val();
|
||||||
item.options += ')" ><?php echo html_print_image('images/eye.png', true, ['title' => __('Show more')]); ?></a>';
|
item.options += ')" ><?php echo html_print_image('images/eye.png', true, ['title' => __('Show more')]); ?></a>';
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
Loading…
x
Reference in New Issue
Block a user