How to stop auto event creation

You can modify function showLightbox as

scheduler.showLightbox = function(){
this.show_cover();
… any other js code …

and when form is closing, you can call

scheduler.hide_cover();

It will enable covering layer, which will catch all further clicks and prevent unnecessary events creation.