Data Binding Happens twice in Scheduler.Load() Event

====EMERGENCY====
Hi,

I have used scheduler and not the inbuilt lightbox for creating events on it. So whenever i create an appointment i will do the following two lines to bind data in scheduler

Scheduler.clearAll()
Scheduler.load(‘params’)

This worked fine.

But now i using the signalR concept and in this case when two users simultaneously creates an appointment means the Scheduler.load binds all the events twice.

Can any one tell me how to over come this.

FYI : When N users create event simultaneously the signalR invokes and Scheduler.load binds all events N time. :blush:

You need to block double-loading

[code]var loading_flag = false;

if (!loading_flag){
loading_flag = true;
scheduler.clearAll()
scheduler.load(‘params’, function(){
loading_flag = false;
})
}[/code]