Ignore:
Timestamp:
11/03/11 13:21:19 (12 years ago)
Author:
wmerlotto
Message:

Ticket #2305 - Enviando alteracoes, desenvolvidas internamente na Prognus, do modulo calendar.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/calendar/templates/default/edit.tpl

    r4473 r5132  
    1010</style> 
    1111<script language="JavaScript"> 
    12  
    13         function addAttach(){ 
    14             var divFiles = document.getElementById("divFiles"); 
    15             if (! divFiles) 
    16                     return false; 
    17  
    18             if (divFiles.lastChild) 
    19                     var countDivFiles = parseInt(divFiles.lastChild.id.split('_')[1]) + 1; 
    20  
    21             if (! countDivFiles) 
    22                     var countDivFiles = 1; 
    23  
    24             divFile = document.createElement('DIV'); 
    25  
    26  
    27             divFile.innerHTML = "<input type='file' size='50' maxLength='255' id='"+"inputFile_"+countDivFiles+"' name='cal[attachment][]'>"; 
    28  
    29  
    30             var linkFile = document.createElement("A"); 
    31             linkFile.id = "linkFile_"+countDivFiles; 
    32             linkFile.href='javascript:void(0)'; 
    33             linkFile.onclick=function () {removeFile(this.id.replace("link","div")); return false;}; 
    34             linkFile.innerHTML="Remove"; 
    35             //divFile.innerHTML += "&nbsp;&nbsp;"; 
    36             divFile.appendChild(linkFile); 
    37             divFile.id = "divFile_"+countDivFiles; 
    38             divFiles.appendChild(divFile); 
    39  
    40  
    41  
    42             return document.getElementById("inputFile_"+countDivFiles); 
    43         } 
    44  
    45         function removeFile(id){ 
    46             var border_id = id.substr(8,1); 
    47             var el = Element(id); 
    48             el.parentNode.removeChild(el); 
    49         } 
    50  
    5112        self.name="first_Window"; 
    5213        function accounts_popup() 
     
    5415                Window1=window.open('{accounts_link}',"Search","width=800,height=600,toolbar=no,scrollbars=yes,resizable=yes"); 
    5516        } 
    56  
    57         function show_disponibility() { 
    58                 participants = ""; 
    59                 combo = document.getElementById('user_list'); 
    60                 if(combo.length==0) { 
    61                         alert('Selecione os participantes'); 
    62                         return; 
    63                 } 
    64  
    65                 for (i=0;i<combo.length;i++) { 
    66                         participants+=combo[i].value+","; 
    67                 } 
    68                 url = 'index.php?menuaction=calendar.uicalendar.disponibility&participants='+participants+'&date='+document.getElementById('start[str]').value; 
    69  
    70                 //alert(url); 
    71                 document.getElementById('frame_disponibility').src = url; 
    72                 document.getElementById('disponibility').style.display=''; 
    73                 //window.open(url); 
    74         } 
    7517</script> 
    7618<center> 
    7719<font color="#000000" face="{font}"> 
    78  
    79 <form action="{action_url}" method="post" name="app_form" enctype="multipart/form-data"> 
     20<form action="{action_url}" method="post" name="app_form" id="formEvent"> 
    8021{common_hidden} 
    8122<table id="editFormTable" border="0" width="90%"   class="prefTable"> 
     23<input id="set_participants" style="visibility: hidden;" value="{lang_set_participants}"></input> 
    8224 <tr> 
    8325  <td colspan="2"> 
     
    9436                var alert_field = '{alert_msg}'; 
    9537        </script> 
    96         <input id="submit_button" style="font-size:10px" type="submit" value="{submit_button}" onClick="return submitValues(alert_field);"></div></form> 
     38        <input id="submit_button" style="font-size:10px" type="button" value="{submit_button}"  onclick="javascript:submitValues(this);" ></div></form> 
    9739  </td> 
    9840  <td>{cancel_button}</td> 
Note: See TracChangeset for help on using the changeset viewer.