My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1768: OnDropHover raise event
2 people starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Aug 2013


Sign in to add a comment
 
Reported by arunjang...@gmail.com, Apr 5, 2013
Hi,

I am using the full calender and having a requirement that, one cannot drop the external events to previous dates, i.e. Let say, today is 05 Apr 2013, and, if you want to drop an event to the 1st Apr 2013, so you won't allow this thing, and thus make the DAY box in a different color(red color) by providing a css class.

So, this thing i would like to achieve by raising an event from the callender.js and then consume it on my page. This event is basically returns a boolean, which will tell whether the event can be dropped on that day or not. So, i will just check the current date and found if its lesser then today, then return false in that case.

I hope, I am able to make it clear to you.

Hope a get a quick reply from you soon.

Thanks.
Aug 24, 2013
Project Member #1 adamrs...@gmail.com
you could use the `eventDrop` trigger:
http://arshaw.com/fullcalendar/docs/event_ui/eventDrop/

and you could look at the "dayDelta" and the "minuteDelta", and if it is moving the event backwards, you could call the "revert" function to undo it.

beyond this, i cannot help you with the details of your implementation
Status: Done
Sign in to add a comment

Powered by Google Project Hosting