- Timestamp:
- 03/18/13 15:22:45 (10 years ago)
- Location:
- trunk/prototype/modules/calendar/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/calendar/js/calendar.codecs.js
r8007 r8028 625 625 calendars: Calendar.calendars, 626 626 calendar: objEvent.calendar, 627 occurrences: objEvent.occurrences, 627 628 summary: objEvent.summary, 628 629 type: !!objEvent.type ? objEvent.type : 1, … … 1643 1644 1644 1645 var occurrences = [ startDate.getTime() ]; 1645 1646 1646 1647 if( res[i].occurrences ) 1647 1648 { … … 1651 1652 for( var ii = 0; ii < occurrences.length; ii++ ) 1652 1653 { 1653 var currentDate = new Date( occurrences[ii]);1654 var currentDate = new Date( parseInt(occurrences[ii]) ); 1654 1655 var counter = currentDate.clone(); 1655 1656 1656 1657 var res2 = $.extend( {}, res[i], { 1657 1658 'startDate': currentDate.toString( User.preferences.dateFormat ), 1658 'endDate': new Date( occurrences[ii]+ duration ).toString( User.preferences.dateFormat )1659 'endDate': new Date( parseInt(occurrences[ii]) + duration ).toString( User.preferences.dateFormat ) 1659 1660 }); 1660 1661 1661 1662 if(res[i].repeat) 1662 1663 res2.repeat = typeRepeat[res[i].repeat.frequency]; 1663 1664 1664 var index = dateCalendar.dayNames[counter.getDay()] +' '+counter.toString('dd/MM'); 1665 1665 -
trunk/prototype/modules/calendar/js/helpers.js
r8020 r8028 111 111 var end = $("#calendar").fullCalendar('getView').visEnd.getTime()/1000; 112 112 var criteria = DataLayer.criteria("schedulable:calendar", {'start':start, 'end':end} ); 113 114 var data = DataLayer.get("schedulable:print", criteria); 113 114 var data = DataLayer.encode('schedulable:print', DataLayer.dispatch('modules/calendar/schedules', criteria ) ); 115 115 116 116 if($("#calendar").fullCalendar('getView').name == "month"){
Note: See TracChangeset
for help on using the changeset viewer.