Browse Source

UI-2244: updated code for resend feature

4.0
Jean-Roch Maitre 10 years ago
parent
commit
89d82ca55c
1 changed files with 12 additions and 14 deletions
  1. +12
    -14
      app.js

+ 12
- 14
app.js View File

@ -535,21 +535,19 @@ define(function(require){
resendFax: function(faxId, callback) {
var self = this;
self.getFaxDetails('outbound', faxId, function(fax) {
self.callApi({
resource: 'faxes.updateOutbound',
data: {
accountId: self.accountId,
faxId: faxId,
data: fax,
envelopeKeys: {
action: 'resubmit'
}
},
success: function(data) {
callback && callback(data.data);
self.callApi({
resource: 'faxes.updateOutbound',
data: {
accountId: self.accountId,
faxId: faxId,
data: {},
envelopeKeys: {
action: 'resubmit'
}
});
},
success: function(data) {
callback && callback(data.data);
}
});
}
};


Loading…
Cancel
Save