If you’re going to use the cal extension 1.1 (http://www.yiiframework.com/extension/cal) with JQuery 1.6+ there’s a bug on cal/components/fullCal/eventCal.js related to checkboxes.
In JQuery 1.6+ the checkbox parameters are set using this syntax:
$(".myCheckbox").prop("checked", true);
but the file uses the older:
$('.myCheckbox').attr('checked','checked')
so in this file you must change all
.attr
to
.prop
A ctrl+f / crtl+h and replace all will do the job.
This solves:
-
Undefined index: allDay (/var/www/caltest/protected/modules/cal/controllers/MainController.php:84
-
New events were created as all day events even if the user specified them as not all day.
-
New events were created as being not editable even if the checkbox was not checked.
Hope this will help others.