Changeset 7835 for branches


Ignore:
Timestamp:
02/01/13 17:31:32 (6 years ago)
Author:
douglas
Message:

Ticket #3333 - Em uma lista de eventos o ultimo evento do mes nao e visualizado

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/prototype/modules/calendar/js/helpers.js

    r7702 r7835  
    25062506        case 'agendaWeek': 
    25072507            var dateStart = new Date().moveToDayOfWeek(dateCalendar.dayOfWeek[User.preferences.weekStart]);  
    2508             var dateEnd = new Date().moveToDayOfWeek(dateCalendar.dayOfWeek[User.preferences.weekStart]);  
     2508            var dateEnd = new Date().moveToDayOfWeek(dateCalendar.dayOfWeek[User.preferences.weekStart]);  
     2509            dateEnd.setHours(0,0,0);  
     2510            dateStart.setHours(0,0,0);   
    25092511            rangeStart = dateStart.add({ days: (7 * page_index) }).getTime(); 
    25102512            rangeEnd = dateEnd.add({ days: (7 * page_index)+7 }).getTime(); 
     
    25132515            var date = Date.today().add({ months: page_index }) 
    25142516            rangeStart = date.moveToFirstDayOfMonth().getTime(); 
    2515             rangeEnd = date.moveToLastDayOfMonth().getTime(); 
     2517            rangeEnd = date.moveToLastDayOfMonth().getTime() + 86400000; 
    25162518            break; 
    25172519        case 'year': 
    25182520            var dateStart = new Date().add({ years: page_index }); 
    25192521            var dateEnd = new Date().add({ years: page_index }); 
     2522            dateEnd.setHours(0,0,0);  
     2523            dateStart.setHours(0,0,0);  
    25202524            if(dateStart.getMonth() != 0) 
    25212525                    dateStart.moveToMonth(0, -1) 
     
    25242528 
    25252529        rangeStart = dateStart.moveToFirstDayOfMonth().getTime(); 
    2526         rangeEnd = dateEnd.moveToLastDayOfMonth().getTime(); 
     2530        rangeEnd = dateEnd.moveToLastDayOfMonth().getTime() + 86400000; 
    25272531            break;   
    25282532    } 
     
    25812585            }; 
    25822586        } 
    2583  
     2587          
    25842588        var results = DataLayer.encode('schedulable:list', DataLayer.dispatch('modules/calendar/schedules', criteria)); 
    25852589        //var results = DataLayer.get('schedulable:detail', criteria); 
Note: See TracChangeset for help on using the changeset viewer.