Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Fullcalendar TypeError: i is null in nightly version #605

Closed
Colbiocin opened this issue Oct 2, 2013 · 1 comment
Closed

Fullcalendar TypeError: i is null in nightly version #605

Colbiocin opened this issue Oct 2, 2013 · 1 comment

Comments

@Colbiocin
Copy link

Hello again :)

I don't know if is a bug or not but is ok to mention. I integrated qTip2 (nightly version) in FullCalendar and activated like in your example but on mouseover:

eventMouseover: function(data, event, view) {
    var content = '<h3>'+data.title+'</h3>' + 
        '<p><b>Start:</b> '+data.start+'<br />' + 
        (data.end && '<p><b>End:</b> '+data.end+'</p>' || '');

    tooltip.set({ 'content.text': content })
        .reposition(event).show(event);
},

If I don't set

eventMouseout: function(event, jsEvent, view) {
    tooltip.hide();
},

firebug generates the error TypeError: i is null". jquery.qtip.min.js (line 2). In the stable version this is not happening. (same settings.. tested only by changing js file). Don't know if this is an issue.

Thx.

var tooltip = $('<div/>').qtip({
        id: 'calendar',
        prerender: true,
        content: {
            text: ' ',
            title: {
                button: false
            }
        },
        position: {
            my: 'bottom center',
            at: 'top center',
            target: 'mouse',
            viewport: $('calendar'),
            adjust: {
                mouse: false,
                scroll: false,
            }
        },
        style: 'qtip-light'
    }).qtip('api');
@Colbiocin
Copy link
Author

On chrome I get

Uncaught TypeError: Cannot read property 'pageX' of null jquery.qtip.min.js:2
j.reposition jquery.qtip.min.js:2
j.set jquery.qtip.min.js:2
$.fullCalendar.eventMouseover agenda:453
trigger fullcalendar.js:687
trigger fullcalendar.js:4591
(anonymous function) fullcalendar.js:4697
jQuery.event.special.(anonymous function).handle jquery.js:5460
jQuery.event.dispatch jquery.js:5095
elemData.handle jquery.js:4766

Maybe is something with fullcalendar or I am doing something wrong :(

@Craga89 Craga89 closed this as completed in 06b3d79 Oct 8, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant