diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php
index 9d45334828..8843113205 100644
--- a/pandora_console/include/functions_events.php
+++ b/pandora_console/include/functions_events.php
@@ -5944,17 +5944,30 @@ function events_get_instructions($event, $max_text_length=300)
return $value;
}
+ $event_name = ui_print_truncate_text(
+ io_safe_output($event['evento']),
+ GENERIC_SIZE_TEXT,
+ false,
+ true,
+ false,
+ '...'
+ );
+
+ $over_event_name = base64_encode($event_name);
$output = '
';
$output .= '
';
- $output .= '
';
+ $output .= '';
$output .= html_print_image(
'images/default_list.png',
true,
- ['title' => $over_text]
+ [
+ 'title' => $over_text,
+ 'class' => 'invert_filter',
+ ]
).'';
return $output;
diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php
index 22f4908b07..651b4be227 100644
--- a/pandora_console/operation/events/events.php
+++ b/pandora_console/operation/events/events.php
@@ -3694,11 +3694,19 @@ function datetime_picker_callback() {
datetime_picker_callback();
-function show_instructions(id){
+function show_instructions(id, title_event){
title = "";
$('#hidden_event_instructions_' + id).dialog({
- title: title,
- width: 600
+ title: `${title+' '+atob(title_event)}`,
+ width: 650,
+ draggable: true,
+ modal: true,
+ closeOnEscape: true,
+ open: function(){
+ $('.ui-widget-overlay').bind('click',function(){
+ $('#hidden_event_instructions_' + id).dialog('close');
+ })
+ }
});
}