diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-03-01 20:56:00 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-03-01 21:00:23 +0100 |
commit | ec2f49833da5c1fdb54d63c4ec05b7309c4e3c68 (patch) | |
tree | ef163b1390432f64eeeef268346710967d63dc20 /apps/calendar/js | |
parent | f914cd014432f0883b0fde9ca0826d32393a07a9 (diff) | |
download | nextcloud-server-ec2f49833da5c1fdb54d63c4ec05b7309c4e3c68.tar.gz nextcloud-server-ec2f49833da5c1fdb54d63c4ec05b7309c4e3c68.zip |
Calendar: Don't request edit form for readonly events
Diffstat (limited to 'apps/calendar/js')
-rw-r--r-- | apps/calendar/js/calendar.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/calendar/js/calendar.js b/apps/calendar/js/calendar.js index d2af6918d5c..907d94edb02 100644 --- a/apps/calendar/js/calendar.js +++ b/apps/calendar/js/calendar.js @@ -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 |