How can I add click class function in event

I have class in event. I want click class in event to add class.
This is the code I wrote.

scheduler.attachEvent("onClick", function (id, e){
        $("#"+id+" .text-activity").click(function() {
                $("#"+id+" .tooltipbox").toggleClass("active");
        });
        $("#"+id+" .btn-action").click(function() {
                $("#"+id+" .box-action").toggleClass("active");
        });
	return true;
});

This code double-click it to add a class.
I want a single click to add a class.

Hello,

Please, use event_class template to add class to the event’s container.
Check this snippet how to add class when onClick event fires:
docs.dhtmlx.com/scheduler/snippet/ffb1eb7a