onClick event is called three times on units view


I have implemented following code.

scheduler.attachEvent(“onClick”, function(event_id, native_event_object) {
if (event_id == “007”) {
alert(“Unavailable hours”);
return false;

            else {
                return true;

this is called 3-times, so i get 3 alerts instead of only 1.
Please let me know what i am doing wrong here?


Actually i was calling this in intCalendar control itself hence this issue. I have removed this code and it works fine now :slight_smile: