Changeset 3254


Ignore:
Timestamp:
09/15/10 15:14:03 (14 years ago)
Author:
rafaelraymundo
Message:

Ticket #1284 - Mapa de disponibilidade apresenta erro javascript

Location:
branches/2.2/calendar/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/calendar/templates/classic/edit.tpl

    r663 r3254  
    1515                Window1=window.open('{accounts_link}',"Search","width=800,height=600,toolbar=no,scrollbars=yes,resizable=yes"); 
    1616        } 
     17 
     18        function show_disponibility() { 
     19                participants = ""; 
     20                combo = document.getElementById('user_list'); 
     21                if(combo.length==0) { 
     22                        alert('Selecione os participantes'); 
     23                        return; 
     24                } 
     25 
     26                for (i=0;i<combo.length;i++) { 
     27                        participants+=combo[i].value+","; 
     28                } 
     29                url = 'index.php?menuaction=calendar.uicalendar.disponibility&participants='+participants+'&date='+document.getElementById('start[str]').value; 
     30 
     31                //alert(url); 
     32                document.getElementById('frame_disponibility').src = url; 
     33                document.getElementById('disponibility').style.display=''; 
     34                //window.open(url); 
     35        } 
    1736</script> 
    1837<center> 
     
    2140<form action="{action_url}" method="post" name="app_form"> 
    2241{common_hidden} 
    23 <table id="editFormTable" border="0" width="90%"> 
     42<table id="editFormTable" border="0" width="90%"   class="prefTable"> 
    2443 <tr> 
    2544  <td colspan="2"> 
  • branches/2.2/calendar/templates/default/edit.tpl

    r1154 r3254  
    1414        { 
    1515                Window1=window.open('{accounts_link}',"Search","width=800,height=600,toolbar=no,scrollbars=yes,resizable=yes"); 
     16        } 
     17 
     18        function show_disponibility() { 
     19                participants = ""; 
     20                combo = document.getElementById('user_list'); 
     21                if(combo.length==0) { 
     22                        alert('Selecione os participantes'); 
     23                        return; 
     24                } 
     25 
     26                for (i=0;i<combo.length;i++) { 
     27                        participants+=combo[i].value+","; 
     28                } 
     29                url = 'index.php?menuaction=calendar.uicalendar.disponibility&participants='+participants+'&date='+document.getElementById('start[str]').value; 
     30 
     31                //alert(url); 
     32                document.getElementById('frame_disponibility').src = url; 
     33                document.getElementById('disponibility').style.display=''; 
     34                //window.open(url); 
    1635        } 
    1736</script> 
Note: See TracChangeset for help on using the changeset viewer.