Scheduler security

I’m setting up some security so that only certain users can add events to the scheduler. All other users will be able to open the lightbox but all the fields will be disabled.



I’ve managed to disable everything and remove the recurring area. However I have two problems, the Save and Delete buttons are still enabled. How can i disable those and just allow the cancel button?



The second problem is that i can’t get the disabled time area to display the proper date/time for the event. I am disabling the lists with this:

scheduler.form_blocks.time.set_value=function(node,value,ev)

{

for (var i=0; i < node.children.length; i++)

{

node.children[i].value = value||"";

node.children[i].disabled = true;

}

}



I either get nothing with node.children[i].value = value||""; if i disable that line the date defaults to Jan 1 2004.



Thanks,

Shawn

The oncoming update will have ability to show form in disabled state based on global or event’s settings. New version will be released in few days.

>>How can i disable those and just allow the cancel button?
In existing version, by using css rules it possible to fully remove buttons, but they will be removed for all events, not only for specific ones.

>>if i disable that line the date defaults to Jan 1 2004.
var old = scheduler.form_blocks.time.set_value;
scheduler.form_blocks.time.set_value=function(node,value,ev)
{
for (var i=0; i < node.children.length; i++)
{
node.children[i].disabled = true;
}
old.call(this,node,value,ev);
}