How to show event_id of created new event?

Hello, Team support!

Simple but interest question!

I need show number of event in Scheduler by follow code:

scheduler.templates.event_text = function(start,end,ev){
    return "Event N" + ev.id + "other info....";
}

Everything ok, but there is one problem - just new created event has random id!
How to check for new event and force that event to update.
Like this code:

scheduler.templates.event_text = function(start,end,ev){
    result = "";
    if ( /* this event is new */) 
          result += "Please update me";
    else 
          result += "Event N" + ev.id + "other info...."; 
    return result;
}

Best regards!
SeitArt

Hello,

Force update… where, what?
By default once you create new event it will automatically will send AJAX request to save it.

Best regards,
Ilya

Hello, Iliya!

Yes, when Lightbox closed, new event created.
But in render method that event ev.id equals like 13054847363 value (UID).
Later, after AJAX request ev.id will take real id.
How can I check that event is a new event and it’s id has no real number?

Best Regards,
SeitArt

For example, in this code:

scheduler.templates.event_text = function(start,end,ev){
 
   result = "<a href=\"javascript:void(0);\" onClick=\"showDetails(" + ev.id + ")\">Details N" + ev.id + "</a>";
    return result;
}

Just new created event, will has wrong link with function showDetails(), main reason - ev.id will equals random uid!