- Timestamp:
- 10/09/12 12:02:08 (12 years ago)
- Location:
- trunk/prototype
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/config/participant.ini
r6996 r7377 22 22 createParticipantHistoric = modules/calendar/interceptors/DBMapping.php 23 23 24 [before.create] 25 encodeCreateParticipant = modules/calendar/interceptors/DBMapping.php 26 24 27 [before.delete] 25 28 prepareParticipantHistoric = modules/calendar/interceptors/DBMapping.php -
trunk/prototype/modules/calendar/interceptors/DBMapping.php
r7170 r7377 51 51 class DBMapping extends Helpers { 52 52 53 54 55 /* 56 * Verificar inconsistencia no FF 57 * */ 58 static function encodeCreateParticipant(&$uri, &$params, &$criteria, $original) 59 { 60 if(isset($params['delegatedFrom']) && is_array($params['delegatedFrom'])){ 61 $params['delegatedFrom'] = $params['delegatedFrom']['id']; 62 } 63 } 64 65 53 66 static function encodeCreateSchedulable(&$uri, &$params, &$criteria, $original) 54 67 { -
trunk/prototype/modules/calendar/js/helpers.js
r7357 r7377 1246 1246 user[0].acl = objEvent.acl; 1247 1247 user[0].isDirty = !!!objEvent.id; 1248 user[0].isDelegate = (objEvent.id && (objEvent.me.status == '5')); 1248 1249 1249 1250 blkAddAtendee.find('dd.attendee-list ul.attendee-list').append( … … 1280 1281 isExternal: 1, 1281 1282 acl: objEvent.acl, 1282 isDirty: !!!objEvent.id 1283 isDirty: !!!objEvent.id, 1284 isDelegate: (objEvent.id && (objEvent.me.status == '5')) 1283 1285 }]) 1284 1286 ).scrollTo('max'); … … 1391 1393 isExternal: old_item.find('.isExternal').html(), 1392 1394 acl: objEvent.acl, 1393 isDirty: !!!objEvent.id 1395 isDirty: !!!objEvent.id, 1396 isDelegate: (objEvent.id && (objEvent.me.status == '5')) 1394 1397 }])) 1395 1398 .scrollTo('max'); -
trunk/prototype/modules/calendar/templates/attendee_add.ejs
r6649 r7377 125 125 </li> 126 126 <%} 127 } else if( data.event.me.id == data.event.organizer.id && !(data.event.attendee.length > 0) ){ %>127 } else if((data.event.me.id == data.event.organizer.id) && (data.event.attendee.length == 0) && $.isEmptyObject(data.event.delegatedFrom)){ %> 128 128 <li class="not-attendee">Não há outros participantes.</li> 129 129 <% } %> -
trunk/prototype/modules/calendar/templates/participants_add_itemlist.ejs
r7350 r7377 2 2 <div style="overflow:hidden; width:100%; display:table;"> 3 3 <div class="attendee-options"> 4 <%if( !data[0].isDelegate && ( !data[0].isDirty && data[0].notEvent) || (!data[0].isDirty && data[0].acl && (data[0].acl.organization || data[0].acl.write || data[0].acl.inviteGuests))){%>4 <%if( !data[0].isDelegate && ((!data[0].isDirty && data[0].notEvent) || (!data[0].isDirty && data[0].acl && (data[0].acl.organization || data[0].acl.write || data[0].acl.inviteGuests)))){%> 5 5 <a href="#" class="button delegate attendee-options-button-delegate new">Delegar participação a este participante</a> 6 6 <%}%>
Note: See TracChangeset
for help on using the changeset viewer.