Ignore:
Timestamp:
05/31/12 18:24:52 (12 years ago)
Author:
acoutinho
Message:

Ticket #2821 - Inconsistências na interface de anexos e na remoção de anexos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/calendar/templates/event_add.ejs

    r6331 r6369  
    161161         
    162162        <fieldset class="attachment-list hidden"> 
     163             <%if(data.event && data.event.attachments){ 
     164                for (var i=0; i< data.event.attachments.length; i++) {%> 
     165                    <input type="hidden" name="fileId[]" value="<%=data.event.attachments[i].id%>"/> 
     166                <%} 
     167            }%> 
    163168        </fieldset> 
    164169    </form> 
     
    166171<div class="overflow_add_calender"> 
    167172        <fieldset id="calendar_addevent_details5" class="tab-level2"> 
    168                 <form id="fileupload" action="attachment:detail" method="POST"> 
     173        <form id="fileupload" action="attachment:detail" method="POST"> 
    169174        <!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload --> 
    170175        <div class="row fileupload-buttonbar"> 
     
    183188                                <%}%> 
    184189            </div> 
    185                         <div id="fileupload-progress"></div> 
     190            <div id="fileupload-progress"></div> 
    186191            <div class="files-list"> 
    187192               <ul class="attachments-list"> 
     
    197202                                                        <a href="../prototype/getArchive.php?attachment=<%=data.event.attachments[i].id%>" class="button tiny upload downlaod-archive">Download</a> 
    198203                                                        <%if(data.event.acl.organization || data.event.acl.write){%> 
    199                                                                 <span class="button close tiny upload delete-upload" title="Deletar">Deletar</span> 
     204                                                                <span class="button close tiny upload edit delete-upload" title="Deletar">Deletar</span> 
    200205                                                        <%}%> 
    201206                                                        <input type="hidden" name="fileId[]" value="<%=data.event.attachments[i].id%>"/> 
Note: See TracChangeset for help on using the changeset viewer.