Closed GoogleCodeExporter closed 8 years ago
the problem it's in _adjustForEventCollisions:
if (! oldCalEvent.resizable || (newCalEvent.end.getTime() <=
currentCalEvent.end.getTime()
&& newCalEvent.start.getTime() >= currentCalEvent.start.getTime())) {
adjustedStart = oldCalEvent.start;
adjustedEnd = oldCalEvent.end;
return false;
}
try to comment the condition !oldCalEvent.resizable.
Original comment by ichigocr...@gmail.com
on 19 Nov 2009 at 4:33
Thanks for the reply.
It works if I replace all the code in the function '_adjustForEventCollisions:'
example:
#####################################################################
_adjustForEventCollisions : function($weekDay, $calEvent, newCalEvent,
oldCalEvent,
maintainEventDuration) {
if (! oldCalEvent.resizable || (newCalEvent.end.getTime() <=
currentCalEvent.end.getTime() && newCalEvent.start.getTime() >=
currentCalEvent.start.getTime())) {
adjustedStart = oldCalEvent.start;
adjustedEnd = oldCalEvent.end;
return false;
}
},
#####################################################################
but it is the right way to fix the bug?
Original comment by ridingwe...@googlemail.com
on 19 Nov 2009 at 4:46
I think no.
The condition !oldCalEvent.resizable correct another bug. If you debug, you see
that
the oldCalEvent.resizable is undefined and it take the value false.
oldCalEvent.resizable must value 'true' to fix the bug.
Original comment by ichigocr...@gmail.com
on 19 Nov 2009 at 5:03
This is not good.
I hope it will fixed as soon as possible because i think it is an elementary
feature
of the calendar and it will be a great pitty if that feature isn't useable.
Original comment by ridingwe...@googlemail.com
on 20 Nov 2009 at 1:08
I replaced
!oldCalEvent.resizable
with
oldCalEvent.resizable==false
in
if (! oldCalEvent.resizable || (newCalEvent.end.getTime() <=
currentCalEvent.end.getTime()
&& newCalEvent.start.getTime() >= currentCalEvent.start.getTime
())) {
So I assume when oldCalEvent.resizable is undefined, it is true and thus
resizable.
As far as I can see, this fixes the bug.
Original comment by koosvdk...@gmail.com
on 15 Dec 2009 at 9:07
I've implemented the change suggested above and it appears to fix the problem.
Original comment by robmo...@gmail.com
on 3 Mar 2010 at 5:42
I have also implemented the change. It works! thanks
Original comment by nadagoes...@gmail.com
on 12 May 2010 at 11:01
I had an overlapping problem of different time intervals in a day. I changed
resizable property to false, it solved.
Original comment by ercue...@gmail.com
on 28 May 2011 at 8:42
Original issue reported on code.google.com by
ridingwe...@googlemail.com
on 19 Nov 2009 at 2:30