My favorites
▼
|
Sign in
fullcalendar
ISSUE TRACKER HAS MOVED. DO NOT USE THIS (more info)
Project Home
Issues
Export to GitHub
New issue
Search
Search within:
All issues
Open issues
New issues
Issues to verify
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