modify drag/drop behavior when showAsSeparatedUser enabled

21 views
Skip to first unread message

nodell

unread,
Jul 15, 2010, 3:07:51 PM7/15/10
to jquery week calendar
Hi Julien/All,

First thanks for the updates you've made to Rob's original calendar -
great stuff!

I'm trying to update the behavior of the drag/drop of calendar events
when showing multiple users. In Julien's most recent code the userids
associated with the event are updated if it is dropped on a different
user column. In my case I want to restrict the drop to only the
columns that have the same userid as that of the event.

The issue is that when reverting the event to it's original position,
it gets placed slightly out of alignment in the grid. Has anyone else
experienced this?

Thanks,

Neil

nodell

unread,
Jul 15, 2010, 8:39:10 PM7/15/10
to jquery week calendar
In case anyone else wants to do something similar, figured it out
(quite simple actually):

in _addDroppableToWeekDay I replaced the code in the section that
begins if (showAsSeparatedUser)..... with the following:

if (calEvent.userId != newUserId)
{
newCalEvent = calEvent;
}


Neil
Reply all
Reply to author
Forward
0 new messages