Calendar: Don't request edit form for readonly events

This commit is contained in:
Bart Visscher 2012-03-01 20:56:00 +01:00
parent f914cd0144
commit ec2f49833d
1 changed files with 3 additions and 0 deletions

View File

@ -73,6 +73,9 @@ Calendar={
}
},
editEvent:function(calEvent, jsEvent, view){
if (calEvent.editable == false || calEvent.source.editable == false) {
return;
}
var id = calEvent.id;
if($('#event').dialog('isOpen') == true){
// TODO: save event