LucyParsonsCenter / shifts

A small app to manage training new collective members and working shifts
1 stars 0 forks source link

Further work on the calendar #15

Closed alicewriteswrongs closed 8 years ago

alicewriteswrongs commented 8 years ago

weee

blech

alicewriteswrongs commented 8 years ago

ok so basically I tried out the react equivalent of fullcalendar, and it's missing way too many features to be useful.

so we're sticking with the jquery calendar, and using the react form (which lives in a bootstrap modal). Basically if we want the calendar callbacks (like select and eventClick and so on) to correctly update the form (so that you're e.g. editing the info for the right event) we need to add some hidden form fields. Basically these fields exist just to be programmatically filled in inside of the fullcalendar callback.

the process looks like:

whew

alicewriteswrongs commented 8 years ago

rn basically all of the frontend stuff for this process is in place except for the store fetching event data.

alicewriteswrongs commented 8 years ago

side note: we can do a thing similar to what is described above in order to fill in the right date, or right start and end times, when you click on something.

alicewriteswrongs commented 8 years ago

it's done! things work!

it's a bit hacky,

ok it's quite hacky.

jquery + react = pain

the worst part is having to wrap a call to one of the actions in setTimeout( function () {})...