| Issue 1519: | eventDrop also "click" the url of the event | |
| 4 people starred this issue and may be notified of changes. | Back to list |
I have an odd problem. Whenever I drop an event on a new date, it goes through the eventDrop procedure just fine. Once it's completed, if there's a URL on the event, it goes to that URL. This is on FullCalendar version 1.5.3. Here's my initialization code:
<script type='text/javascript'>
var ev = [];
var results = [];
var minDate = new Date();
$(document).ready(function() {
var date = new Date();
var d = date.getDate();
var m = date.getMonth();
var y = date.getFullYear();
minDate = date;
$('#calendar').fullCalendar({
year: y,
month: m,
day: d,
theme: true,
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
selectable: true,
selectHelper: true,
prev: function() {
getEvents();
},
select: function(start, end, allDay) {
clearEventForm();
setModalDates(start, end);
alert("asdf");
$('a[name=modal1]').click();
calendar.fullCalendar('unselect');
},
eventDrop: function(event, jsEvent, ui, view){
updateEventDates(event);
},
eventResize: function( event, dayDelta, minuteDelta, revertFunc, jsEvent, ui, view ){
updateEventDates(event);
},
editable: true,
events: [],
eventMouseover: function(calEvent, jsEvent, view){
overlib(calEvent.description, WRAP);
},
eventMouseout: function(calEvent, jsEvent, view){
nd();
}
});
$('#calendar .fc-button-prev .fc-button-inner').live('click', function(){
getEvents(false);
saveFilterSelection();
});
$('#calendar .fc-button-next .fc-button-inner').live('click', function(){
saveFilterSelection();
});
$('#calendar .fc-button-today .fc-button-inner').live('click', function(){
saveFilterSelection();
});
init();
});
</script>
Aug 29, 2012
This also appears to only be happening in Firefox. It behaves as expected in chrome. Haven't tried IE...
Aug 29, 2012
Additionally, the eventMouseout function doesn't execute when I drop the event.
Aug 30, 2012
Apologies. This was a jquery issue. I resolved it with this: http://stackoverflow.com/questions/1771627/preventing-click-event-with-jquery-drag-and-drop
Sep 5, 2012
Hi, I am having the same problem, what did you do?
Oct 19, 2012
What I did was removed the url attribute from the event object, and gave a custom function for click (a dialog box). This is obviously a hack, but does solve the problem. I can generate the click link due to the other data I have when I create the event objects
Mar 17, 2013
Issue 1638 has been merged into this issue.
Aug 13, 2013
this was fixed a while ago and released.
Status:
Released
Labels: Type-Bug |
|
| ► Sign in to add a comment |
ignore "alert("asdf");". I just put that in there for testing. It should be noted that this line doesn't execute, leading my to conclude there's an actual eventClick action happening.