From dfea704154db56867c376648404e75641db8a108 Mon Sep 17 00:00:00 2001 From: Kike Date: Fri, 27 Sep 2019 14:48:45 +0200 Subject: [PATCH] Show instructions on mouse over --- pandora_console/include/functions_events.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index cbe94ef8cb..24cfd6f10c 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -6668,6 +6668,12 @@ function events_get_instructions($event) return ''; } + $max_text_length = 300; + $over_text = io_safe_output($value); + if (strlen($over_text) > ($max_text_length + 3)) { + $over_text = substr($over_text, 0, $max_text_length).'...'; + } + $output = '
'; $output .= ''; $output .= ''; - $output .= html_print_image('images/default_list.png', true).''; + $output .= html_print_image('images/default_list.png', true, ['title' => $over_text]).''; $output .= ''; return $output;