From 89d82ca55c61b62506ea635890e9d806972e0fa3 Mon Sep 17 00:00:00 2001 From: Jean-Roch Maitre Date: Thu, 21 Jul 2016 12:51:34 -0700 Subject: [PATCH] UI-2244: updated code for resend feature --- app.js | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/app.js b/app.js index dcb6cc6..86a4c54 100644 --- a/app.js +++ b/app.js @@ -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); + } }); } };