- Timestamp:
- 08/10/12 12:25:20 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.4.2-expresso1/prototype/modules/calendar/js/calendar.codecs.js
r6979 r6985 731 731 dueTime: (!objEvent.due || objEvent.due == '' || objEvent.due == '0') ? '' : dateCalendar.formatDate(Timezone.getDateEvent(new Date( parseInt(objEvent.due)), objEvent.timezone, objEvent.calendar, objEvent.DayLigth, 'startTime'), User.preferences.hourFormat), 732 732 allDay: !!parseInt( objEvent.allDay ), 733 historic: !!objEvent.historic ? decodeHisto tic(objEvent) : [] ,733 historic: !!objEvent.historic ? decodeHistoric(objEvent) : [] , 734 734 attachments: $.map(objEvent.attachments || [], function( attachment, i ){ 735 735 var attach = DataLayer.get('schedulableToAttachment', attachment, false); … … 807 807 }); 808 808 809 function decodeHisto tic ( evt ) {809 function decodeHistoric ( evt ) { 810 810 var historic = evt.historic; 811 811 var decoded = []; … … 819 819 'priority': 'Priorudade', 820 820 'due' : 'Previsão de término' 821 } 822 823 var statusDecoded = { 824 1: 'Sem ações', 825 2: 'Em processo', 826 3: 'Finalzada', 827 4: 'Cancelada', 821 828 } 822 829 … … 863 870 time: decodeDate(historic.time) 864 871 } 872 case 'status': 873 return{ 874 user :$.type(historic.user) == 'object' ? historic.user : DataLayer.get('user', historic.user), 875 attribute :attributeDecoded[historic.attribute], 876 beforeValue : statusDecoded[historic.beforeValue], 877 afterValue : statusDecoded[historic.afterValue], 878 time: decodeDate(historic.time) 879 } 865 880 break; 866 881 default: … … 1036 1051 tasks[task.id].description = tasks[task.id].startDate + ' - ' + (!!task.summary ? task.summary : task.description); 1037 1052 1038 historic.push({'task': (!!task.summary ? task.summary : task.description) , 'historic': decodeHisto tic(task)});1053 historic.push({'task': (!!task.summary ? task.summary : task.description) , 'historic': decodeHistoric(task)}); 1039 1054 } 1040 1055
Note: See TracChangeset
for help on using the changeset viewer.