Ignore:
Timestamp:
06/14/12 17:38:04 (12 years ago)
Author:
niltonneto
Message:

Ticket #2507 - Refatorado array contendo metadados do anexo em RESTClient.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/webservice/restclient/index.html

    r6424 r6500  
    192192                                                $('#attachment_id').prop('disabled',false); 
    193193                                                var attachments = a_response.result.messages[0].msgAttachments; 
    194                                                 var idxFile = 0; 
    195194                                                for (var j in attachments){ 
    196                                                         var value = {   ID: attachments[j].pid, 
    197                                                                                         index: idxFile, 
    198                                                                                         name:attachments[j].name, 
    199                                                                                         encoding:attachments[j].encoding 
     195                                                        var value = {   ID: attachments[j].attachmentID, 
     196                                                                                        index: attachments[j].attachmentIndex, 
     197                                                                                        name:attachments[j].attachmentName, 
     198                                                                                        encoding:attachments[j].attachmentEncoding, 
    200199                                                                                }; 
    201                                                         $("#attachment_id").append("<option value='"+$.toJSON(value)+"'>"+attachments[j].name+"</option>"); 
    202                                                         idxFile++; 
     200                                                        $("#attachment_id").append("<option value='"+$.toJSON(value)+"'>"+attachments[j].attachmentName+"</option>"); 
    203201                                                } 
    204202                                        } 
Note: See TracChangeset for help on using the changeset viewer.