Ignore:
Timestamp:
07/26/12 16:00:19 (12 years ago)
Author:
marcieli
Message:

Ticket #2966 - Atualizada listagem de eventos/tarefas/atividades ao atualizar/excluir.

Location:
sandbox/2.4.2-expresso1/prototype/modules/calendar
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.4.2-expresso1/prototype/modules/calendar/js/calendar.codecs.js

    r6880 r6885  
    712712        taskStatus: objEvent.status, 
    713713        groups: Calendar.groups, 
    714         group: objEvent.group, 
     714        group: objEvent.group ? objEvent.group : objEvent.calendar, 
    715715        summary: objEvent.summary, 
    716716        type: !!objEvent.type ? objEvent.type : 2, 
  • sandbox/2.4.2-expresso1/prototype/modules/calendar/js/helpers.js

    r6883 r6885  
    20692069                    delete Calendar.currentViewKey; 
    20702070                    Calendar.load(); 
    2071                     refresh_calendars(); 
     2071                    refresh_calendars(type); 
    20722072                }); 
    20732073            } 
     
    20782078} 
    20792079 
    2080 function refresh_calendars(){ 
     2080function refresh_calendars(type){ 
    20812081 
    20822082    var colorsSuggestions = colors_suggestions(); 
     
    23082308                 
    23092309    $('.calendar-view').click(function(evt){ 
    2310         if($tabs.tabs('option' ,'selected') == 1){ 
    2311             pageselectCallback('', 0); 
     2310        if($tabs.tabs('option' ,'selected') != 0){ 
     2311            pageselectCallback('', 0, false, type); 
    23122312        } 
    23132313                         
     
    25662566function pageselectCallback(keyword, page_index, view, type){ 
    25672567    $('.qtip.qtip-blue').remove(); 
    2568          
    25692568        var tab_selector = ['tab_events_list_', 'tab_tasks_list_', 'tab_all_list_']; 
    25702569        var tab_title = ['Lista de eventos', 'Lista de tarefas']; 
     
    26252624                                var eventId = $(this).siblings('[name="eventid"]').val(); 
    26262625                                var calendarId = $(this).siblings('[name="calendarid"]').val(); 
    2627  
    26282626                                remove_event(eventId, calendarId); 
    26292627                        }) 
  • sandbox/2.4.2-expresso1/prototype/modules/calendar/js/load.js

    r6876 r6885  
    9393                contentMenu(); 
    9494            }else if((typeof($tabs) != "undefined") && $tabs.tabs('option' ,'selected') != 0) 
    95                 pageselectCallback($('.events-list-win.active [name=keyword]').val(), 0); 
     95                                 
     96                pageselectCallback($('.events-list-win.active [name=keyword]').val(), 0, false, ($tabs.tabs('option' ,'selected') > 2) ? 2 : ($tabs.tabs('option' ,'selected') == 1) ? 0 : 1); 
    9697        } 
    9798    } 
  • sandbox/2.4.2-expresso1/prototype/modules/calendar/templates/event_list.ejs

    r6880 r6885  
    232232                                                                <input name="eventid" type="hidden" value="<%=_event.id%>"></input> 
    233233                                                                <input name="eventtype" type="hidden" value="<%=_event.type%>"></input> 
    234                                 <input name="calendarid" type="hidden" value="<%=_event.calendar%>"></input> 
     234                                <input name="calendarid" type="hidden" value="<%=_event.calendar ? _event.calendar : _event.group%>"></input> 
    235235                                                                <a title="Excluir" class="button delete" href="#">Excluir</a> 
    236236                                                                <a title="Editar" class="button edit" href="#">Editar</a> 
Note: See TracChangeset for help on using the changeset viewer.