- Timestamp:
- 07/17/12 16:07:52 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.4.2-expresso1/prototype/modules/calendar/js/calendar.codecs.js
r6768 r6797 728 728 id: form.idEvent, 729 729 location: form.location, 730 type: 1, 730 731 category: form.category, 731 732 summary: form.summary, … … 953 954 attendee = DataLayer.get('participant', evt.participants[i]); 954 955 if(attendee.user == User.me.id) 955 return (attendee.acl.indexOf('w') >= 0 || attendee.acl.indexOf('o') >= 0 ) ? { 956 return (attendee.acl.indexOf('w') >= 0 || attendee.acl.indexOf('o') >= 0 ) ? 957 { 956 958 selectable: true, 957 959 className: 'fullcalendar-context-menu event-id-'+idEvent+' calendar-id-'+calendar.id+ (isRecurrence ? ' isRecurrence Recurrence-id-'+Recurrence : '') … … 979 981 return returns; 980 982 } 981 return DataLayer.merge({ 983 return DataLayer.merge( 984 { 982 985 editable: aclSignature.acl['write'] && !isRecurrence, 983 986 disableResizing : (((aclSignature.acl['busy'] && !aclSignature.acl['write']) || (!aclSignature.acl['write'] && aclSignature.acl['read'])) ? true : false), 984 987 disableDragging : (((aclSignature.acl['busy'] && !aclSignature.acl['write']) || (!aclSignature.acl['write'] && aclSignature.acl['read'])) ? true: false), 985 988 className: mountClass(aclSignature.acl) 986 }, aclSignature.acl['busy'] ? { 987 title: 'Ocupado', 988 selectable: false 989 } : { 990 selectable: true 991 }); 989 }, aclSignature.acl['busy'] ? 990 { 991 title: 'Ocupado', 992 selectable: false 993 } : { 994 selectable: true 995 }); 992 996 } 993 994 997 } 995 998 … … 1008 1011 1009 1012 for( var i = 0; i < occurrences.length; i++ ) 1010 grouped[ evt.calendar ].push( DataLayer.merge({ 1013 grouped[ evt.calendar ].push( DataLayer.merge( 1014 { 1011 1015 id: evt.URI || evt.id+ '-' + i, 1012 1016 title: Encoder.htmlDecode(evt.summary), … … 1016 1020 isRepeat: isRepeat, 1017 1021 occurrence: i, 1022 type: evt.type, 1018 1023 calendar: evt.calendar 1019 1024 }, eventEditable(evt.id, isRepeat, i ) ) );
Note: See TracChangeset
for help on using the changeset viewer.