Issue 495: event dragging/resizing with smaller granularity
Status:  Released
Owner: ----
Closed:  Aug 2013
Reported by rlaemm...@gmail.com, May 27, 2010
An event can be added in a different granularity than displayed. E.g. 
calendar renders 30 minutes slots. But click, drag and unclick paints and 
adds in 15 minutes granularity. 
different granularity.png
18.0 KB   View   Download
Jun 10, 2010
#1 rlaemm...@gmail.com
Here an implementation we would like to contribute. Adam, I hope you are going to include it in your main source code. :-)

1. The default length in minutes for a new event (created by click and drag can be configured) - agenda.js - line 13

2. Added variable dragSlotHeight for storing the height in pixels of half a slot. This is used for setting the drag/resize grid height for dragging and resising event handlers - agenda.js - line 85

3. Logic slightly changed in draggableSlotEvent() function for 15 minute granularity while dragging (moving) existing events. All additions marked using ** NEW ** and all changes marked using ** CHANGED ** - agenda.js - line 776

4. Logic slightly changed in resizableSlotEvent() function for 15 minute granularity while resizing existing events. All additions marked using ** NEW ** and all changes marked using ** CHANGED ** - agenda.js - line 898

5. Logic slightly changed in slotSelectionMousedown() function for 15 minute granularity while creating new events using click and drag. All additions marked using ** NEW ** and all changes marked using ** CHANGED ** - agenda.js - line 1000

6. Added a new function buildSlotMatrix_Create() which is used to create a matrix containing lefts and tops of all calendar cells. This matrix is used as reference while sizing rhe newly created event. All additions marked using ** NEW ** and all changes marked using ** CHANGED ** - agenda.js - line 1213

7. Added a new function HoverMatrix_Create() which is used to create the mouse reference matrix for sizing new events (The function HoverMatrix() is used in a lot of places, so I didn't want to mess with it :) ). All additions marked using ** NEW ** and all changes marked using ** CHANGED ** - util.js - line 454
FC_Rel_1.zip
71.6 KB   Download
Jun 16, 2010
#2 tuma.ma...@gmail.com
I made similar functionality by ading rowspan to first th and decreasing slot minutes + some CSS.

caendar.png
7.1 KB   View   Download
Sep 13, 2010
#3 rlaemm...@gmail.com
@tuma.marek,

Would you mind sharing some code?

Thx,
Reto
Oct 7, 2010
Project Member #4 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Maybe
Dec 31, 2010
Project Member #5 adamrs...@gmail.com
 Issue 776  has been merged into this issue.
Dec 31, 2010
Project Member #6 adamrs...@gmail.com
in  issue 776 , rbohn posted another mod that might work well
Summary: event dragging/resizing with smaller granularity
May 8, 2011
Project Member #7 adamrs...@gmail.com
 Issue 911  has been merged into this issue.
May 16, 2011
#8 natraj...@gmail.com
Great Work!!
Aug 15, 2012
#9 etienne....@gmail.com
Great Work but what about fixing the latest version: 1.5.3?
Aug 13, 2013
Project Member #10 adamrs...@gmail.com
i forgot to update this thread, sorry, but this was released in 1.6:

http://arshaw.com/fullcalendar/docs/agenda/snapMinutes/
Status: Released
Labels: Type-Feature