this stuff here:

http://arshaw.com/fullcalendar/docs/dropping/

attached patch adds a setting to the views UI, and sends that down to js land, and implements the 'iterate an object for callbacks' pattern so modules can write js to react to drop events.

pretty please?

CommentFileSizeAuthor
#8 fullcalendar-1287196-8.patch3.39 KBtim.plunkett
#6 fullcalendar-1287196-6.patch2.67 KBtim.plunkett
#1 fullcalendar.droppable.patch2.59 KBAnonymous (not verified)
fullcalendar.droppable.patch2.47 KBAnonymous (not verified)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

updated patch checks if the new option is set, coz some views that were already created might not have it.

aspilicious’s picture

I prefer a permission linked to dropaccept in stead of another views option... combining both ideas provide greater flexibility but the views settings are getting damn big and ugly.

Can you provide a sample module/function for this??
I would like to see how you attach the callback to the object :)!

I think this is a good start for drag and drop creation of events.

Anonymous’s picture

updated patch coming soon.

also: #1291850: support for 'columnFormat' options.

Anonymous’s picture

Status: Needs review » Needs work
aspilicious’s picture

Status: Needs work » Reviewed & tested by the community

Marking this rtbc as it is implemented on the dev branch :)

tim.plunkett’s picture

So here's the patch I have in the to-merge branch I want to roll out soon.

But, it has a dependency on fullcalendar_droppable, the forthcoming module. Because I don't want that checkbox there unless someone has provided a droppable callback.

So maybe we need a hook or something to say "i've registered a droppable callback, please add the checkbox"? I'd love a better solution.

tim.plunkett’s picture

Issue tags: +fulllcalendar rewrite

Tagging.

tim.plunkett’s picture

Okay, it's now hook_fullcalendar_droppable(). Docs added as well.

Anonymous’s picture

looks awesome, already RTBC, so just a +1 from me.

aspilicious’s picture

Status: Reviewed & tested by the community » Fixed

Also fixed!

Automatically closed -- issue fixed for 2 weeks with no activity.