Add popup toggle callback

In my project, I need to do some custom javascript positioning for the popup, to make sure it fits on the screen. For this I need a hook inside the continuous calendar code.