jquery-week-calendar
jquery-week-calendar copied to clipboard
Multiday-event created as multiple events
First of all - great work, this calendar really looks promising! Though I have some issues with multiday-events.
If I create an event link this;
{ "id": 1, "start": new Date(year, month, day + 1, 17), "end": new Date(year, month, day + 3, 9), "title": "Multiday Vacation" }
the event are drawn as three separate events in calendar, one from 1700 to 0000 day 1, one from 0000 to 0000 day 2 and one from 0000 to 0900 day 3. Moving or resizing the event only affect one day and not the event as a unit, so moving the event on day 4 two days forward splits the event in more different events.
I would expect the functionality to be like this;
- event-part on day 1 should only be movable, not resizable, and moving the event should affect the complete event not only what is visible on day 1
- event part on day 2 should not be movable nor resizable
- event-part on day 3 should only be resizable, not movable
- timespan-text on event should reflect the real start- and end times (and dates) and only event-part on day 1 should include time-div
Furthermore, dont know if it is a bug or a feature as it is now but in my context I see it as a bug, it could be great if marking a period for creating a new event was not limited to one day but could be done over a span of days. This would also make it possible to resize an event to take more or less days than originally.
Hi,
feel free to send a PR to fix it, if it fits the requirements it will definitely be merged :)
julien
On Wed, Oct 19, 2011 at 1:22 PM, kila03 < [email protected]>wrote:
First of all - great work, this calendar really looks promising! Though I have some issues with multiday-events.
If I create an event link this;
{ "id": 1, "start": new Date(year, month, day + 1, 17), "end": new Date(year, month, day + 3, 9), "title": "Multiday Vacation" }
the event are drawn as three separate events in calendar, one from 1700 to 0000 day 1, on from 0000 to 0000 day 2 and one from 0000 to 0900 day 3. Moving or resizing the event only affect one day and not the event as a unit, so moving the event on day 4 two days forward splits the event in more different events.
I would expect the functionality to be like this;
- event-part on day 1 should only be movable, not resizable, and moving the event should affect the complete event not only what is visible on day 1
- event part on day 2 should not be movable nor resizable
- event-part on day 3 should only be resizable, not movable
- timespan-text on event should reflect the real start- and end times (and dates) and only event-part on day 1 should include time-div
Furthermore, dont know if it is a bug or a feature as it is now but in my context I see it as a bug, it could be great if marking a period for creating a new event was not limited to one day but could be done over a span of days. This would also make it possible to resize an event to take more or less days than originally.
Reply to this email directly or view it on GitHub: https://github.com/themouette/jquery-week-calendar/issues/88
At the moment, unfortunately, I do not got the time to try to fix the issue - creating this issue was mostly meant to be a wishlist and give ideas for further development if, of course, the development of the calendar continues. If I get time to created fixes I will of course suggest these.
kila03, I think this project http://arshaw.com/fullcalendar/ does what you require. A single event can span multiple days and acts like a single event when dragging.
That is a whole month calendar, but it can be configured to act like a week calendar by using the option:
defaultView: 'agendaWeek'
It does not have native disable overlap capability, but you could implement that yourself if required.
I have already seen and tested a bit on the arshaw.com calendar and it really has potential but there are still a few minor features; you cant mark a new period across days (e.g. monday 0800 to wednesday 1200), when resizing og moving a multiday-event the day/days not from the currently marked day temporary dissappears and you cant resize (only move) the beginning of an event. But I can see that I overlooked the fact, that is support jQueryUI theme so maybe it is worth a closer look.