- Timestamp:
- 08/09/12 12:25:44 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.4.2-expresso1/prototype/modules/calendar/js/calendar.codecs.js
r6968 r6974 626 626 priority: form.priority, 627 627 category: form.category, 628 summary: form.summary ,628 summary: form.summary == '' ? 'Tarefa sem título' : form.summary, 629 629 description: form.description, 630 630 timezone: tzId, … … 827 827 case 'due': 828 828 return { 829 user : historic.user,829 user :$.type(historic.user) == 'object' ? historic.user : DataLayer.get('user', historic.user), 830 830 attribute : attributeDecoded[historic.attribute], 831 831 beforeValue : decodeDate(historic.beforeValue), … … 836 836 case 'participant': 837 837 return{ 838 user : historic.user,838 user :$.type(historic.user) == 'object' ? historic.user : DataLayer.get('user', historic.user), 839 839 attribute : historic.beforeValue == '' ? ('Novo participante') : ('Rem. participante'), 840 840 beforeValue : historic.beforeValue == '' ? '' : historic.beforeValue.mail, … … 845 845 case 'attachment': 846 846 return{ 847 user : historic.user,847 user : $.type(historic.user) == 'object' ? historic.user : DataLayer.get('user', historic.user), 848 848 attribute : historic.beforeValue == '' ? ('Novo anexo') : ('Rem. anexo'), 849 849 beforeValue : historic.beforeValue, … … 853 853 case 'percentage': 854 854 return{ 855 user : historic.user,855 user :$.type(historic.user) == 'object' ? historic.user : DataLayer.get('user', historic.user), 856 856 attribute :attributeDecoded[historic.attribute], 857 857 beforeValue : historic.beforeValue+' %', … … 862 862 default: 863 863 return { 864 user : historic.user,864 user : $.type(historic.user) == 'object' ? historic.user : DataLayer.get('user', historic.user), 865 865 attribute : attributeDecoded[historic.attribute], 866 866 beforeValue : historic.beforeValue, … … 929 929 930 930 var tzId = form.timezone || Calendar.signatureOf[form.group].calendar.timezone || User.preferences.timezone, 931 932 931 formatString = pref.dateFormat + " " + pref.hourFormat; 933 932 … … 969 968 priority: form.priority, 970 969 category: form.category, 971 summary: form.summary ,970 summary: form.summary == '' ? 'Atividade sem título' : form.summary, 972 971 description: form.description, 973 972 timezone: tzId, … … 1003 1002 if(!(typeof(objEvent) == 'object')) 1004 1003 return (null); 1004 1005 var historic = []; 1005 1006 1006 1007 var decodeTasks = function(obj){ … … 1025 1026 endDate: new Date( parseInt(task.endTime) - (!!parseInt(task.allDay) ? 86400000 : 0) ).setTimezoneOffset( Timezone.timezone( task.timezone ) ).toString( User.preferences.dateFormat ), 1026 1027 endHour: dateCalendar.formatDate(Timezone.getDateEvent(new Date(parseInt(task.endTime)), task.timezone, obj.calendar, obj.DayLigth, 'endTime'), User.preferences.hourFormat), 1027 1028 1028 status: task.status, 1029 percentage: task.percentage 1029 1030 } 1030 1031 1031 1032 tasks[task.id].description = tasks[task.id].startDate + ' - ' + (!!task.summary ? task.summary : task.description); 1032 1033 1034 historic.push({'task': (!!task.summary ? task.summary : task.description) , 'historic': decodeHistotic(task)}); 1033 1035 } 1034 1036 … … 1060 1062 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), 1061 1063 allDay: !!parseInt( objEvent.allDay ), 1062 historic: [],1064 historic: historic, 1063 1065 tasks: objEvent.taskToActivity ? decodeTasks(objEvent) : {}, 1064 1066 attachments: $.map(objEvent.attachments || [], function( attachment, i ){ … … 1226 1228 type: 1, 1227 1229 category: form.category, 1228 summary: form.summary ,1230 summary: form.summary == '' ? 'Evento sem título' : form.summary, 1229 1231 description: form.description, 1230 1232 timezone: tzId, … … 1435 1437 if(!dates[index] || !$.isArray(dates[index].events)) 1436 1438 dates[index] = {events: []}; 1439 1440 res2['isOneDay'] = duration <= 86400000 ? true : false; 1437 1441 1438 1442 dates[index].events.push(res2);
Note: See TracChangeset
for help on using the changeset viewer.