Changeset 6994 for branches


Ignore:
Timestamp:
08/10/12 17:53:44 (12 years ago)
Author:
eduardow
Message:

Ticket #3008 - Corrigido o problema de permissão.

Location:
branches/2.4/prototype/modules/calendar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/prototype/modules/calendar/js/calendar.shared.js

    r6754 r6994  
    11function show_modal_shared(calendarId){ 
    2     var html = DataLayer.render('templates/shared_calendar.ejs', { 
    3         calendar: Calendar.calendars 
     2     
     3    var html = DataLayer.render('templates/shared_calendar.ejs', {  
     4        calendar: Calendar.calendars,  
     5        signature : Calendar.signatures  
    46    });  
    57         
  • branches/2.4/prototype/modules/calendar/templates/shared_calendar.ejs

    r5863 r6994  
    77                                <dd class="calendar"> 
    88                                        <select class="calendar" name="calendar"> 
    9                                                         <%for(var i = 0; i < data.calendar.length; i++){%> 
     9                                                        <%                                                        
     10                            for(var i = 0; i < data.calendar.length; i++){  
     11                                    if(data.signature[i].permission){  
     12                                            if(data.signature[i].permission.acl.shared == false)  
     13                                                    continue;  
     14                                    }  
     15                            %> 
    1016                                                                <option value="<%=data.calendar[i].id%>"><%=data.calendar[i].name%></option> 
    11                                                         <%}%> 
     17                                                        <%   
     18                                } %>  
    1219                                        </select> 
    1320                                        </dd> 
Note: See TracChangeset for help on using the changeset viewer.