My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions

Issue 2453 attachment: foof_fullcalendar_helper.js (733 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
(function($) {
$.fn.getDayCell = function(mouseEvent) {
var calendarId = $(this).attr('id');
var days = $('#'+calendarId + ' .fc-day');
for(var i = 0 ; i < days.length ; i++) {
var day = $(days[i]);
var mouseX = mouseEvent.pageX;
var mouseY = mouseEvent.pageY;
var offset = day.offset();
var width = day.width();
var height = day.height();
if ( mouseX >= offset.left && mouseX <= offset.left+width
&& mouseY >= offset.top && mouseY <= offset.top+height )
return day;
}
}
}(jQuery));

Powered by Google Project Hosting