craigsworks.com - Support Forum

Full Version: Intergrating qTip with FullCalendar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was integrating qTip with FullCalendar and came across an issue where it was throwing an error on line 138 near:

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
Bill, that shouldn't effect anything no, and looks fine to me.
Ok Craig, thanks. Also thanks for a great program. Easy to use and setup. Had another question. Is there a way to make it follow your mouse pointer rather than have it docked to one point?

Thanks,
Bill
PHP Developer
KickApps Corporation
linusx, set position.target to 'mouse' Smile
Thanks that worked. Didn't see that anywhere in docs.

Thanks again.
Reference URL's