Hi I am trying to set the text of an event. It is a user selected option and I want to set the text when the user click the save in the lightbox. For some reason its setting every event to the same text. How do I fix this?
var sections=[
{key:1, label:"Men's Cut"},
{key:2, label:"Color"},
{key:3, label:"Women's Cut"},
{key:4, label:"Wax"},
{key:5, label:"Child Cut (under 3 yrs old)"},
{key:6, label:"Nails - Pedicure"},
{key:7, label:"Nails - Manicure"},
{key:8, label:"Other"}
];
scheduler.attachEvent("onEventSave",function(id,data,is_new_event){
scheduler.templates.event_text=function(start,end,event){
return scheduler.getLabel("section_id", data.section_id);
}
return true;
});