Open GoogleCodeExporter opened 8 years ago
I think this would be a good feature. In the mean time, I have created a
workaround
for both dropping and resizing objects in version 1.2.0 which might be of some
use.
// Prevents an event from being dropped to a slot in the past
eventDrop : function(calEvent, $event) {
if(calEvent.id) {
if(calEvent.end.getTime() < new Date().getTime()) {
$("#calendar").weekCalendar("removeEvent", calEvent.id);
$("#calendar").weekCalendar("updateEvent", $event);
}
}
}
// This rejects a resize after it has been performed, it simply reverts it to
its
previous position
eventResize : function(calEvent, $event) {
$("#calendar").weekCalendar("updateEvent", $event);
}
Hope it helps someone.
Original comment by kwakwave...@gmail.com
on 4 Aug 2009 at 10:15
Original issue reported on code.google.com by
robmo...@gmail.com
on 17 Jun 2009 at 12:54