aboutsummaryrefslogtreecommitdiffstats
path: root/apps/calendar/js
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-03-01 20:56:00 +0100
committerBart Visscher <bartv@thisnet.nl>2012-03-01 21:00:23 +0100
commitec2f49833da5c1fdb54d63c4ec05b7309c4e3c68 (patch)
treeef163b1390432f64eeeef268346710967d63dc20 /apps/calendar/js
parentf914cd014432f0883b0fde9ca0826d32393a07a9 (diff)
downloadnextcloud-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.js3
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