If I include the read_only extension in the page, this causes all events to be read only, regardless of any parameters I have set. I have created an if statement:
[code]function isEditable(id){
return “blah” == “blah”;
}
scheduler.attachEvent("onDblClick", function(id,e){
if(!isEditable(id)){
scheduler.getEvent(id).readonly = true;
}
return true;
});
scheduler.attachEvent("onBeforeDrag", function (id, mode, e){
if(!isEditable(id))
return false;
return true;
}); [/code]
blah == blah should make everything edittable, but it doesnt.