6th April, 20:08
I was integrating qTip with FullCalendar and came across an issue where it was throwing an error on line 138 near:
The fullCalendar code is:
I resolved the issue by changing that line to read:
I was just wondering if that was going to mess anything up anywhere else or if you had any other suggestions.
Thanks,
Bill
PHP Developer
KickApps Corporation
JS Code
if(typeof $(this).data('qtip') == 'object')
The fullCalendar code is:
JS Code
$('#calendar').fullCalendar({
editable: false,
disableDragging: true,
disableResizing: true,
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
editable: true,
events: '/ajax/?task=getEvents',
eventClick: updateEvent,
eventRender: function(event, element) {
element.qtip({
content : event.description,
position: {corner: {tooltip: 'bottomLeft', target: 'topRight'}},
style : {
width: 200,
padding: 5,
background: '#A2D959',
color: 'black',
textAlign: 'center',
border: {
width: 7,
radius: 5,
color: '#A2D959'
},
tip: 'bottomLeft',
name: 'dark' // Inherit the rest of the attributes from the preset dark style
}
});
}
});
I resolved the issue by changing that line to read:
JS Code
if(typeof $(this).data('qtip') == 'object' && $(this).data('qtip') !== null)
I was just wondering if that was going to mess anything up anywhere else or if you had any other suggestions.
Thanks,
Bill
PHP Developer
KickApps Corporation
