Changeset 6069 for trunk/prototype/modules
- Timestamp:
- 05/02/12 15:17:17 (12 years ago)
- Location:
- trunk/prototype/modules/calendar/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/calendar/js/map.disponibility.js
r5636 r6069 154 154 for(var map_attende in map_events){ 155 155 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 156 160 eventSource.push( 157 161 { 158 162 id : "map_busy_events", 159 163 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, 162 166 editable : false, 163 167 allDay : !!parseInt(map_events[map_attende][event_by_attende].allDay), -
trunk/prototype/modules/calendar/js/timezone.js
r5592 r6069 50 50 var offsetDate = !!current ? this.currentOffset : date.getUTCOffset(); 51 51 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); 52 56 } 53 57 }
Note: See TracChangeset
for help on using the changeset viewer.