chg: [UI] Event tooltips

pull/7036/head
Jakub Onderka 2021-02-17 19:58:26 +01:00
parent 08094fd0f7
commit 0725a0f2ac
2 changed files with 8 additions and 5 deletions

View File

@ -64,7 +64,7 @@
);
if (!empty($tag['Tag']['id'])) {
$span_tag = sprintf(
'<a href="%s" style="%s" class="%s" title="%s" data-tag-id="%s">%s</a>',
'<a href="%s" style="%s" class="%s"%s data-tag-id="%s">%s</a>',
sprintf(
'%s%s%s',
$baseurl,
@ -73,7 +73,7 @@
),
$aStyle,
$aClass,
$aText,
isset($aTextModified) ? ' title="' . $aText . '"' : '',
h($tag['Tag']['id']),
isset($aTextModified) ? $aTextModified : $aText
);

View File

@ -574,10 +574,13 @@ $(function () {
queryEventLock('<?= h($event['Event']['id']); ?>', <?= (int)$event['Event']['timestamp'] ?>);
popoverStartup();
$("th, td, dt, div, span, li").tooltip({
'placement': 'top',
'container' : 'body',
$(document.body).tooltip({
selector: 'span[title], td[title]',
placement: 'top',
container: 'body',
delay: { show: 500, hide: 100 }
}).on('shown', function() {
$('.tooltip').not(":last").remove();
});
$.get("<?php echo $baseurl; ?>/threads/view/<?php echo h($event['Event']['id']); ?>/true", function(data) {