Changeset 6198 for trunk/prototype/modules/calendar/js/calendar.codecs.js
- Timestamp:
- 05/15/12 16:29:47 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/calendar/js/calendar.codecs.js
r6182 r6198 601 601 }; 602 602 603 var isShared = !objEvent.id ? false : (!!objEvent.calendar) && parseInt(Calendar.signatureOf[objEvent.calendar].isOwner) ? false : true; 604 605 603 606 return { 604 607 "class": objEvent["class"], … … 682 685 alarms: !!participantInfo.user ? participantInfo.user.alarms : [], 683 686 status: !!participantInfo.user ? participantInfo.user.status : 1, 684 acl: !!participantInfo.user ? constantAcl(participantInfo.user.acl) : ( ( !objEvent.id || isAttendee ) ? constantAcl( 'rowi' ) : constantAcl( 'r')),685 isShared: !this.id ? false : (!!objEvent.calendar) && parseInt(Calendar.signatureOf[objEvent.calendar].isOwner) ? false : true,686 isAttendee: (isAttendee ? true : (objEvent.id && !this.isShared ? false : true)),687 me: ((!objEvent.id) || ( objEvent.id && isAttendee)) ? (!!participantInfo.user ? DataLayer.merge(participantInfo.user, me) : DataLayer.merge( this.isShared ? this.organizer : me, {688 acl: ! this.isShared ? 'rowi' : Calendar.signatureOf[objEvent.calendar].permission.aclValues,687 acl: isShared ? constantAcl(Calendar.signatureOf[objEvent.calendar].permission.aclValues) : (!!participantInfo.user ? constantAcl(participantInfo.user.acl) : ( ( !objEvent.id || isAttendee ) ? constantAcl( 'rowi' ) : constantAcl( 'r' ))), 688 isShared: isShared, 689 isAttendee: (isAttendee ? true : (objEvent.id && isShared ? false : true)), 690 me: ((!objEvent.id) || ( objEvent.id && isAttendee)) ? (!!participantInfo.user ? DataLayer.merge(participantInfo.user, me) : DataLayer.merge(isShared ? participantInfo.organizer : me, { 691 acl: !isShared ? 'rowi' : Calendar.signatureOf[objEvent.calendar].permission.aclValues, 689 692 delegatedFrom: 0, 690 693 receiveNotification: 1
Note: See TracChangeset
for help on using the changeset viewer.