Ignore:
Timestamp:
09/24/09 10:59:52 (15 years ago)
Author:
eduardoalex
Message:

Ticket #599 - Funcionalidade de mapa de disponibilidade.

Location:
trunk/calendar/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/calendar/templates/classic/js/edit.js

    r1267 r1447  
    5050                                select_in.options[i--] = null;                                                                                                                                   
    5151        } 
    52                                                                                                                                                                                  
     52        function show_disponibility() { 
     53 
     54                participants = ""; 
     55                combo = document.getElementById('user_list'); 
     56                if(combo.length==0) { 
     57                        alert('set the participants'); 
     58                        return; 
     59                } 
     60                         
     61                for (i=0;i<combo.length;i++) { 
     62                        participants+=combo[i].value+","; 
     63                } 
     64                url = 'index.php?menuaction=calendar.uicalendar.disponibility&participants='+participants+'&date='+document.getElementById('start[str]').value; 
     65                 
     66                //alert(url); 
     67                document.getElementById('frame_disponibility').src = url; 
     68                document.getElementById('disponibility').style.display=''; 
     69                //window.open(url); 
     70        }                                                                                                                                                
    5371        function submitValues(alert_msg){ 
    5472                var typeField = document.getElementById('cal[type]'); 
  • trunk/calendar/templates/default/js/edit.js

    r1268 r1447  
    4343                oWait.innerHTML = '&nbsp;'; 
    4444        }                        
    45                                                                          
     45        function show_disponibility() { 
     46 
     47                participants = ""; 
     48                combo = document.getElementById('user_list'); 
     49                if(combo.length==0) { 
     50                        alert('set the participants'); 
     51                        return; 
     52                } 
     53                         
     54                for (i=0;i<combo.length;i++) { 
     55                        participants+=combo[i].value+","; 
     56                } 
     57                url = 'index.php?menuaction=calendar.uicalendar.disponibility&participants='+participants+'&date='+document.getElementById('start[str]').value; 
     58                 
     59                //alert(url); 
     60                document.getElementById('frame_disponibility').src = url; 
     61                document.getElementById('disponibility').style.display=''; 
     62                //window.open(url); 
     63        }                                        
    4664        function rem() 
    4765        { 
Note: See TracChangeset for help on using the changeset viewer.