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
Andras Iklody 2012-12-06 16:08:21 +01:00
parent 627e2ba156
commit c452027340
1 changed files with 2 additions and 6 deletions

View File

@ -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']));