Changeset 5702 for trunk/expressoMail1_2/js/draw_api.js
- Timestamp:
- 03/12/12 11:34:43 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/draw_api.js
r5678 r5702 4222 4222 4223 4223 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'); 4228 4233 4229 4234 }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'); 4231 4236 } 4232 4237 fileUploadMSG.find(' .in-progress:first').remove();
Note: See TracChangeset
for help on using the changeset viewer.