mirror of https://github.com/MISP/MISP
changes to the related events mouseover bubble
Removed unneeded headers and changed the address to relative to avoid the sending of an OPTIONS REST request.pull/63/head
parent
627e2ba156
commit
c452027340
|
@ -14,12 +14,8 @@ function getTitle(incInt, incIntb, incIntc){
|
|||
if (document.getElementById(findElementString).title == "Loading event info..."){
|
||||
$.ajax({
|
||||
type: 'GET',
|
||||
url: "<?php echo $baseurl ?>/events/"+id+".xml",
|
||||
url: "/events/"+id+".xml",
|
||||
dataType: 'xml',
|
||||
headers: {
|
||||
"Accept": "application/xml",
|
||||
"Authorization": "<?php echo $authkey ?>"
|
||||
},
|
||||
async:false,
|
||||
success:function(result){
|
||||
var returnData = $(result).find("info").text();
|
||||
|
@ -27,7 +23,7 @@ function getTitle(incInt, incIntb, incIntc){
|
|||
},
|
||||
});
|
||||
};
|
||||
};
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
$mayModify = (($isAclModify && $event['Event']['user_id'] == $me['id']) || ($isAclModifyOrg && $event['Event']['org'] == $me['org']));
|
||||
|
|
Loading…
Reference in New Issue