Fixed events calendar to work with quick edit.
Removed debug code