[Seaside] JQFullCalendar from package JQWidgetBox
Brian Murphy-Dye
brian at murphydye.com
Mon Nov 21 20:18:19 UTC 2011
Most excellent. Thanks for wrapping the calendar for everyone's use and for
the quick response. It's very helpful, Brian.
On Mon, Nov 21, 2011 at 10:45 AM, Paul DeBruicker <pdebruic at gmail.com>wrote:
> On 11-11-21 08:12 AM, Brian Murphy-Dye wrote:
>
>>
>>
>> JQFullCalendar>>**collectionOfEvents: passes only at creation time and
>> >>eventsJsonRest: says to use >>eventsJsonGet:, but that method doesn't
>> exist. Any help will be much appreciated! Brian.
>>
>>
> Hmm. Thats my fault. Sorry about that. I wiped it out some time ago.
>
>
> I uploaded a new version of the FullCalendar package that contains the
> method:
>
> Name: JQWidgetBox-FullCalendar-Core-**PaulDeBruicker.29
> Author: PaulDeBruicker
> Time: 21 November 2011, 9:41:01.688 am
> UUID: b9b511b3-b780-4a11-a734-**26472863d853
> Ancestors: JQWidgetBox-FullCalendar-Core-**PaulDeBruicker.28
>
> somewhere along the line I wiped out JQFullCalendar>>#**eventsJsonGet:
>
> I have added it back in this version of the package.
>
>
> To use it call eventsJsonGet: with a two argument callback when you
> initialize your calendar e.g:
>
> renderCalendar: html
> html div
> id: self calendarDivName;
> script:
> (html jQuery this fullCalendar
> ignoreTimeZone: true;
> selectable: self select;
> allDaySlot: false;
> selectHelper: self select;
> defaultView: defaultView;
> weekMode: 'liquid';
> unselectCancel: '.event-editor';
> year: self session calendarDisplayDate year;
> month: self session calendarDisplayDate month - 1;
> date: self session calendarDisplayDate dayOfMonth;
> eventsJsonGet: [ :start :end | self getEventsFrom:
> start to: end with: html ];
> header: self header;
> onEventClick:
> (html jQuery ajax
> callback: [ :anEventId | self
> setEventToEdit: anEventId ] json: (JSStream on: 'calEvent.id');
> script: [ :s |
> s << (s jQuery id:
> 'eE') dialog open.
> s << (s jQuery id:
> 'ee') replaceWith: [ :h | h render: eventEditor ] ]);
> onSelect:
> (html jQuery ajax
> callback: [ :newEventData | self
> setEventToCreate: newEventData ]
> json: (JSStream on: 'new
> Array(startDate,endDate,**allDay)');
> script: [ :s |
> s << (s jQuery id:
> 'eE') dialog open.
> s << (s jQuery id:
> 'ee') replaceWith: [ :h | h render: eventEditor ] ]))
> ______________________________**_________________
> seaside mailing list
> seaside at lists.**squeakfoundation.org <seaside at lists.squeakfoundation.org>
> http://lists.squeakfoundation.**org/cgi-bin/mailman/listinfo/**seaside<http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20111121/fef61e78/attachment.htm
More information about the seaside
mailing list