fullcalendar - Passing the name of a function as the eventMouseover callback -
i'm trying pass actual name of function rather anonymous function fullcalendar initialization so:
$('#gcally_calendar').fullcalendar({ "eventsources": [...], "eventmouseover":"fc_hover_in" });
i'm getting console error when this, however: uncaught typeerror: array.prototype.slice.call not function
.
any thoughts on this?
for thoroughness, function:
function fc_hover_in(calevent, jsevent, view) { var tooltip = '<div class="tooltipevent" style="width:100px;height:100px;background:#ccc;position:absolute;z-index:10001;">' + calevent.title + '</div>'; jquery("body").append(tooltip); jquery(this).mouseover(function(e) { $(this).css('z-index', 10000); $('.tooltipevent').fadein('500'); $('.tooltipevent').fadeto('10', 1.9); }).mousemove(function(e) { $('.tooltipevent').css('top', e.pagey + 10); $('.tooltipevent').css('left', e.pagex + 20); }); }
but it's not being called @ point.
you should remove quotes pass function reference.
this:
"eventmouseover":"fc_hover_in"
becomes this:
"eventmouseover": fc_hover_in
Comments
Post a Comment