Ignore:
Timestamp:
05/02/12 15:17:17 (12 years ago)
Author:
douglasz
Message:

Ticket #2673 - Problemas com o mapa de disponibilidade.

Location:
trunk/prototype/modules/calendar/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/calendar/js/map.disponibility.js

    r5636 r6069  
    154154                for(var map_attende in map_events){ 
    155155                        for(var event_by_attende in map_events[map_attende]){ 
     156                                var endTime = Timezone.getDateMapDisponibility(new Date(parseInt(map_events[map_attende][event_by_attende].endTime))); 
     157                                if(!!parseInt(map_events[map_attende][event_by_attende].allDay)) 
     158                                        endTime.add({day: -1}); 
     159 
    156160                                eventSource.push( 
    157161                                { 
    158162                                        id : "map_busy_events",  
    159163                                        title : map.attendees[map_attende].name, 
    160                                         start: new Date(parseInt(map_events[map_attende][event_by_attende].startTime)), 
    161                                         end: new Date(parseInt(map_events[map_attende][event_by_attende].endTime)), 
     164                                        start: Timezone.getDateMapDisponibility(new Date(parseInt(map_events[map_attende][event_by_attende].startTime))), 
     165                                        end: endTime, 
    162166                                        editable : false, 
    163167                                        allDay : !!parseInt(map_events[map_attende][event_by_attende].allDay), 
  • trunk/prototype/modules/calendar/js/timezone.js

    r5592 r6069  
    5050                var offsetDate = !!current ? this.currentOffset : date.getUTCOffset(); 
    5151                return date.add({hours: (parseInt(offsetDate.charAt(0) + offsetDate.charAt(2)) * (!!inverse ? -1 : 1) )}); 
     52        }, 
     53         
     54        getDateMapDisponibility: function(date){ 
     55                return this.normalizeDate(date, false, true); 
    5256        } 
    5357} 
Note: See TracChangeset for help on using the changeset viewer.