mirror of https://github.com/MISP/MISP
chg: [UI] Event tooltips
parent
08094fd0f7
commit
0725a0f2ac
|
@ -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
|
||||
);
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue