How to add URL for event text


I am able to add URL to event text by using the below code snippet.


We have two types of events. One is user defined and other is system defined.
We need to add URL only for those system defined events and not for user defined events.

With the above code am not able to customize the URL for system defined events alone.
Can anyone help me how to do this.

Never mind… Added URL as like below…

scheduler.templates.event_text=function(start,end,event) {
if(event.systemDefined == “true”) {
var url = //url
return “” + event.text +"";
} else {
return " “+event.text+” ";