I'm having some troubles while dragging an event with an url assiociated.
If you try to do that, you'll see that the event correctly moves, but also the click event is fired, so you'll visit the linked url (and that's bad).
I tried playing around with the eventClick
callback, but with no luck.
Here you can find my code:
// calendar setup
eventDragStart : function(event, jsEvent, ui, view){
event.dragging = true;
},
eventDragStop : function(event, jsEvent, ui, view){
event.dragging = false;
},
eventClick : function(event, jsEvent, view){
//even if I try to return always false, the link is still active
if(event.dragging === true) return false;
},
Then i tried to manipulate the event link:
eventRender : function(event, element, view){
$('a').click(function(){
// custom function that checks if the event is being dragged or not
//return dragCheck(event);
return false;
});
},
but still no luck. I think that while dragging, a new element is created, so every custom value is wiped out...
Any ideas?