Data title events

This commit is contained in:
fbsanchez 2019-05-29 11:24:17 +02:00
parent c8649a8dc4
commit 5ec162e058
1 changed files with 10 additions and 2 deletions

View File

@ -2816,7 +2816,11 @@ function ui_print_event_type(
$output .= $text;
$output .= '</div>';
} else {
$output = '<div class="mini-criticity" style="background: '.$color.'">';
$output = '<div data-title="';
$output .= $text;
$output .= '" data-use_title_for_force_title="1" ';
$output .= 'class="forced_title mini-criticity" ';
$output .= 'style="background: '.$color.'">';
$output .= '</div>';
}
@ -2890,7 +2894,11 @@ function ui_print_event_priority(
$output .= $criticity;
$output .= '</div>';
} else {
$output = '<div class="mini-criticity" style="background: '.$color.'">';
$output = '<div data-title="';
$output .= $criticity;
$output .= '" data-use_title_for_force_title="1" ';
$output .= 'class="forced_title mini-criticity" ';
$output .= 'style="background: '.$color.'">';
$output .= '</div>';
}