Ignore:
Timestamp:
03/12/12 11:34:43 (12 years ago)
Author:
cristiano
Message:

Ticket #2497 - Mensagem de erro em falha no upload, alerta de arquivos em upload ao enviar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/draw_api.js

    r5678 r5702  
    42224222 
    42234223                done: function(e, data){ 
    4224                         if(!!data.result && data.result != "[]"){ 
    4225                                 var newAttach = jQuery.parseJSON(data.result); 
    4226                                 fileUploadMSG.find('.in-progress:first').parents('p').append('<input type="hidden" name="fileId[]" value="'+newAttach['mailAttachment'][0][0].id+'"/>'); 
    4227                                 addAttachment(ID,newAttach['mailAttachment'][0][0].id); 
     4224                        if(!!data.result && data.result != "[]" ){ 
     4225                                var newAttach = jQuery.parseJSON(data.result);                                
     4226                                if(newAttach.rollback === false) 
     4227                                { 
     4228                                    fileUploadMSG.find('.in-progress:first').parents('p').append('<input type="hidden" name="fileId[]" value="'+newAttach['mailAttachment'][0][0].id+'"/>'); 
     4229                                    addAttachment(ID,newAttach['mailAttachment'][0][0].id); 
     4230                                } 
     4231                                else                              
     4232                                  fileUploadMSG.find('.in-progress:first').parents('p').find('.status-upload').append('Erro ao fazer upload!').addClass('message-attach-error');    
    42284233                                 
    42294234                        }else { 
    4230                                 fileUploadMSG.find(' .progress.on-complete:first').removeClass('on-complete').parents('p').find('.status-upload').addClass('ui-icon ui-icon-cancel'); 
     4235                                fileUploadMSG.find(' .progress.on-complete:first').parents('p').find('.status-upload').append('Erro ao fazer upload!').addClass('message-attach-error'); 
    42314236                        } 
    42324237                        fileUploadMSG.find(' .in-progress:first').remove(); 
Note: See TracChangeset for help on using the changeset viewer.